Function at 0x407235
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48060c
mov eax, dword fs:[0]
push eax
mov eax, 0x291c
call fcn.0046b070
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2898], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a6efc], eax
mov eax, dword [edi + 0x1cc]
xor ebx, ebx
cmp eax, ebx
jne 0x407482
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
push 0x488770
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404ee1
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4072b5
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x4a6c0c]
mov eax, dword [ecx + 0x18c]
cmp eax, ebx
mov byte [ebp - 0x2891], bl
jbe 0x4072ed
lea edi, [eax - 1]
lea eax, [ecx + 0x178]
call fcn.0040b056
cmp word [eax], 0x2f
jne 0x4072ed
mov byte [ebp - 0x2891], 1
cmp byte [0x4a6eb0], bl
mov edi, reloc.SHLWAPI.dll_PathFileExistsA
jne 0x4072ff
mov edi, 0x48879c
cmp byte [ebp - 0x2891], bl
mov esi, 0x4887b8
mov eax, 0x486cac
jne 0x407313
mov eax, esi
push eax
mov eax, dword [0x4a6c0c]
add eax, 0x178
push eax
lea eax, [ebp - 0x28f0]
push eax
call fcn.00404ee1
add esp, 0xc
push 0x4887bc
push eax
lea eax, [ebp - 0x28d4]
push eax
mov byte [ebp - 4], 1
call fcn.00404ee1
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x290c]
push eax
mov byte [ebp - 4], 2
call fcn.00404ee1
add esp, 0xc
push 0x4887a4
push eax
lea eax, [ebp - 0x2928]
push eax
mov byte [ebp - 4], 3
call fcn.00404ee1
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x28b8]
push eax
mov byte [ebp - 4], 4
call fcn.00404ee1
add esp, 0xc
push 0x4a6f10
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00404f64
add esp, 0xc
push 0x488788
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 6
call fcn.00404ee1
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x2c]
call fcn.004049f4
push ebx
push edi
lea esi, [ebp - 0x28b8]
call fcn.004049f4
push ebx
push edi
lea esi, [ebp - 0x2928]
call fcn.004049f4
push ebx
push edi
lea esi, [ebp - 0x290c]
call fcn.004049f4
push ebx
push edi
lea esi, [ebp - 0x28d4]
call fcn.004049f4
push ebx
push edi
lea esi, [ebp - 0x28f0]
mov byte [ebp - 4], reloc.WS2_32.dll_connect
call fcn.004049f4
mov esi, dword [0x4a6ed4]
cmp esi, ebx
jne 0x40741f
call fcn.004052d4
mov esi, eax
mov dword [0x4a6ed4], esi
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
cmp dword [eax + 0x18], 8
jb 0x407434
mov eax, dword [eax + 4]
jmp 0x407437
add eax, 4
mov edx, dword [esi]
push ebx
push 0x488770
push eax
mov ecx, esi
call dword [edx + 4]
push dword [ebp - 0x2898]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40745e
lea eax, [ebp - 0x60]
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + connect]
push ebx
push edi
lea esi, [ebp - 0x64]
call fcn.004049f4
push ebx
push edi
lea esi, [ebp - 0x48]
jmp 0x4076ad
cmp eax, 4
jne 0x4076b2
mov eax, dword [0x4a6e98]
push 8
pop esi
cmp dword [0x4a6eac], esi
jae 0x4074a0
mov eax, 0x4a6e98
push eax
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404ee1
add esp, 0xc
mov dword [ebp - 4], 0xe
cmp dword [0x4a6de8], esi
mov eax, dword [0x4a6dd4]
jae 0x4074d1
mov eax, 0x4a6dd4
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x4074dc
lea ecx, [ebp - 0x28]
push eax
call fcn.00407753
test al, al
pop ecx
je 0x40750b
push 0xffffffffffffffff
push 0x4a6eb4
xor ebx, ebx
lea eax, [ebp - 0x2c]
call fcn.00404c2a
mov eax, dword [ebp - 0x2898]
mov byte [eax + 0x820], 1
push ebx
jmp 0x4076a8
cmp dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x28]
jae 0x407516
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [0x4a6ed8], bl
je 0x4075ab
mov esi, dword [0x4a6ed4]
cmp esi, ebx
jne 0x407540
call fcn.004052d4
mov esi, eax
mov dword [0x4a6ed4], esi
cmp dword [0x4a6eac], 8
mov ecx, dword [0x4a6e98]
jae 0x407554
mov ecx, 0x4a6e98
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
cmp dword [eax + 0x18], 8
jb 0x407569
mov eax, dword [eax + 4]
jmp 0x40756c
add eax, 4
mov edx, dword [esi]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 4]
push dword [ebp - 0x2898]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
cmp dword [0x4a6dcc], 8
mov eax, dword [0x4a6db8]
jae 0x407596
mov eax, 0x4a6db8
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + connect]
jmp 0x4076a7
push 0x2824
lea eax, [ebp - 0x2890]
push ebx
push eax
call fcn.0045c920
mov eax, dword [0x4a6d9c]
add esp, 0xc
cmp dword [0x4a6db0], esi
mov dword [ebp - 0x289c], ebx
jae 0x4075d8
mov eax, 0x4a6d9c
push eax
lea eax, [ebp - 0x2890]
push eax
call fcn.0045f550
cmp dword [0x4a6eac], esi
mov eax, dword [0x4a6e98]
pop ecx
pop ecx
jae 0x4075f9
mov eax, 0x4a6e98
push eax
lea eax, [ebp - 0x890]
push eax
call fcn.0045f550
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
cmp dword [eax + 0x18], esi
pop ecx
pop ecx
jb 0x40761c
mov eax, dword [eax + 4]
jmp 0x40761f
add eax, 4
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0045f550
pop ecx
pop ecx
call fcn.0045745d
mov esi, eax
push edi
push esi
lea edx, [ebp - 0x2890]
lea ecx, [ebp - 0x289c]
call fcn.00457b7e
mov ecx, dword [ebp - 0x289c]
cmp ecx, ebx
mov dword [0x4a6ef4], eax
mov dword [0x4a6ed0], ecx
jne 0x407672
push ebx
push ebx
push 0x4c8
push dword [edi + 0x1c4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4076a7
cmp eax, ebx
jne 0x40765d
push ecx
mov ebx, esi
call fcn.00458004
test eax, eax
mov dword [0x4a6ef4], eax
je 0x4076a5
mov eax, dword [ebp - 0x2898]
xor esi, esi
push esi
push esi
push 0x4c8
push dword [eax + 0x1c4]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
jmp 0x4076a8
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.004049f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c29b
leave
ret