Function at 0x416280
Capabilities:
Delete file

Disassembly:
sub esp, 0x418
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov edi, eax
js 0x4164de
mov eax, dword [esi + 0x62a98]
test eax, eax
je 0x4164de
mov ecx, dword [esi + 0x62a9c]
sub ecx, eax
mov eax, 0x8fe086e3
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x4164de
push ebx
lea ebx, [esi + 8]
push ebp
mov ecx, ebx
call fcn.004a3b40
mov dword [esi + 0x2460], 1
mov ecx, dword [esi + 0x62aa8]
push ecx
mov ecx, ebx
mov dword [esp + 0x14], 0
call fcn.004a77f0
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*2]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0x62a98]
mov ecx, 0x412
lea ebp, [eax + edx*8 + 0xc30]
lea edx, [ebx + 0x5d2d8]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
xor eax, eax
mov edi, edx
push 0x4ed128
push 0x824
rep stosd dword es:[edi], eax
push edx
call ebp
mov eax, dword [esi + 4]
add esp, 0x10
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x62a98]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*8 + 0xa28]
mov ecx, 0x82
mov dword [esp + 0x14], edx
lea edx, [ebx + 0x5cec8]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
push eax
push 0x4ed128
push 0x104
push edx
call ebp
mov eax, dword [esi + 4]
add esp, 0x10
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x62a98]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*8 + 0xa28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x62a98]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*8 + 0xa28]
push edx
call fcn.004a9280
mov edi, dword [esp + 0x430]
add esp, 4
test edi, edi
je 0x4164b1
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4164b1
mov dx, word [0x500df0]
mov dword [esp + 0x10], edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], dx
rep stosd dword es:[edi], eax
mov ecx, dword [0x73ff28]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
push 0x161
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*2]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0x62a98]
lea ecx, [eax + edx*8]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x228]
push 0x103
push eax
call ebp
mov esi, dword [esp + 0x43c]
add esp, 0x10
lea ecx, [esp + 0x220]
push ecx
push 0x435
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0
push 0x402
push 0x3f0
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x10]
mov ecx, ebx
mov dword [ebx + 0x2690], 0x416220
mov dword [ebx + 0x268c], edx
call fcn.004a3ac0
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x418
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x418
ret 4