Function at 0x1005016b
Capabilities:
Delete file
Get graphical window text

Disassembly:
push ebp
sub esp, 0xa00
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0xa00], eax
push 0x34
mov eax, 0x1013c385
call fcn.101018b2
and word [ebp], 0
push 0x7fe
lea eax, [ebp + 2]
push 0
push eax
mov esi, ecx
call fcn.101027c0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0xc
push 0xe5
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x400
lea ecx, [ebp]
push ecx
push eax
call ebx
lea eax, [ebp]
lea ecx, [esi + 0x3c]
push eax
call fcn.10001cbf
push 0xe4
push dword [esi + 4]
call edi
push 0x400
lea ecx, [ebp]
push ecx
push eax
call ebx
lea eax, [ebp]
lea ecx, [esi + 0x38]
push eax
call fcn.10001cbf
xor edi, edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], edi
call fcn.1005d061
pop ecx
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
push eax
call fcn.100adc3c
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x100502c5
mov dword [ebp - 0x38], edi
push eax
lea ecx, [ebp - 0x14]
call fcn.1002bc2b
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x10050276
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x3c]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.1000587e
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.100dd2fb
test eax, eax
pop ecx
je 0x1005026e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x24]
call fcn.100015d9
push dword [esi + 0x5c]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.1000b131
mov eax, dword [eax]
mov ecx, dword [ebx]
push eax
push ebx
mov byte [ebp - 4], 5
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x24]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x100502a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 1
je 0x100502be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
mov byte [ebp - 4], 0
call ebx
mov eax, dword [esi + 0x4c]
push str.post
push eax
call fcn.10101e50
neg eax
pop ecx
pop ecx
sbb al, al
inc al
mov ebx, 0x10152f84
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x10], al
call fcn.1000587e
push dword [ebp - 0x10]
lea eax, [esi + 0x54]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x48]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.10041c85
add esp, 0x24
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.100015d9
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], edi
jne 0x100503c2
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [0x1019a028]
mov dword [ebp - 0x10], eax
push 0x8f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.1000201d
push 0x1fe
lea eax, [ebp + 0x802]
push edi
push eax
mov word [ebp + 0x800], di
call fcn.101027c0
add esp, 0xc
push 0x100
lea eax, [ebp + 0x800]
push eax
push 0x90
push dword [0x1019fa94]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push ecx
mov eax, esp
lea ecx, [ebp + 0x800]
mov dword [ebp - 0x38], esp
push ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x38], esp
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.10018835
add esp, 0x10
lea ecx, [ebp - 0x10]
jmp 0x1005058f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.100408fa
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
push 0x1019e10c
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xa
call fcn.1000c751
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.100e70df
test eax, eax
pop ecx
pop ecx
jl 0x10050557
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x10050557
mov dword [ebp - 0x2c], edi
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x10158d3c
push eax
mov byte [ebp - 4], 0xe
call dword [ecx + 0x94]
cmp dword [ebp - 0x2c], edi
jne 0x10050455
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
mov byte [ebp - 4], 0xd
je 0x10050562
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10050562
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
call fcn.1003bd40
push 1
push 1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push ebx
mov byte [ebp - 4], 0xf
call fcn.1000587e
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 0x10
call fcn.1000584b
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 0x11
call fcn.1000584b
mov byte [ebp - 4], 0xf
call fcn.1003e889
add esp, 0x20
cmp dword [ebp - 0x20], edi
je 0x10050532
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.1002bc2b
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x12
je 0x100504ec
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10003abd
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0x13
call dword [ecx + 0x40]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.1000b131
mov eax, dword [eax]
mov ecx, dword [ebx]
push eax
push ebx
mov byte [ebp - 4], 0x14
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 0x12
je 0x10050518
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x10]
cmp eax, edi
mov byte [ebp - 4], 0xf
je 0x10050532
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
mov byte [ebp - 4], 0xe
je 0x1005043b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1005043b
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 0x28]
cmp eax, edi
mov byte [ebp - 4], 0xc
je 0x10050573
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov byte [ebp - 4], 0xb
je 0x10050584
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x34]
call fcn.100015d9
lea ecx, [ebp - 0x30]
call fcn.100015d9
lea ecx, [ebp - 0x18]
call fcn.100015d9
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x100505ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa00]
xor ecx, ebp
call fcn.101018a3
add ebp, 0xa04
leave
ret 0x10