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

Disassembly:
push ebp
sub esp, 0xa00
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0xa00], eax
push 0x34
mov eax, 0x10183d14
call fcn.10145d80
and word [ebp], 0
push 0x7fe
lea eax, [ebp + 2]
push 0
push eax
mov esi, ecx
call fcn.10146c80
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.1000425b
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.1000425b
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.1007a762
pop ecx
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
push eax
call fcn.100e5402
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x1006cbdf
mov dword [ebp - 0x38], edi
push eax
lea ecx, [ebp - 0x14]
call fcn.1003da00
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x1006cb90
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.10007b11
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.1011c944
test eax, eax
pop ecx
je 0x1006cb88
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x24]
call fcn.10003b75
push dword [esi + 0x5c]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.1000d8ac
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 0x1006cbbc
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 0x1006cbd8
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.1014631e
neg eax
pop ecx
pop ecx
sbb al, al
inc al
mov ebx, 0x1019f188
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x10], al
call fcn.10007b11
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.1005d2c8
add esp, 0x24
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.10003b75
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], edi
jne 0x1006ccdc
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [0x101f3028]
mov dword [ebp - 0x10], eax
push 0x8f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.100045b9
push 0x1fe
lea eax, [ebp + 0x802]
push edi
push eax
mov word [ebp + 0x800], di
call fcn.10146c80
add esp, 0xc
push 0x100
lea eax, [ebp + 0x800]
push eax
push 0x90
push dword [0x101f9aac]
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.10029204
add esp, 0x10
lea ecx, [ebp - 0x10]
jmp 0x1006cea9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1005bf3d
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
push 0x101f7ee8
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xa
call fcn.100100f8
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.10126d24
test eax, eax
pop ecx
pop ecx
jl 0x1006ce71
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x1006ce71
mov dword [ebp - 0x2c], edi
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x101a6a40
push eax
mov byte [ebp - 4], 0xe
call dword [ecx + 0x94]
cmp dword [ebp - 0x2c], edi
jne 0x1006cd6f
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 0x1006ce7c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1006ce7c
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
call fcn.10056fc1
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.10007b11
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.10007ade
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov byte [ebp - 4], 0x11
call fcn.10007ade
mov byte [ebp - 4], 0xf
call fcn.10059ecc
add esp, 0x20
cmp dword [ebp - 0x20], edi
je 0x1006ce4c
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
call fcn.1003da00
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x12
je 0x1006ce06
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10005f82
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.1000d8ac
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 0x1006ce32
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 0x1006ce4c
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 0x1006cd55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1006cd55
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 0x1006ce8d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov byte [ebp - 4], 0xb
je 0x1006ce9e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x34]
call fcn.10003b75
lea ecx, [ebp - 0x30]
call fcn.10003b75
lea ecx, [ebp - 0x18]
call fcn.10003b75
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x1006cec7
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.10145d71
add ebp, 0xa04
leave
ret 0x10