Function at 0x40a010
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x4437b7
call fcn.004420ed
mov edi, ecx
push dword [ebp + 8]
lea ecx, [edi + 0x20]
call fcn.00403d39
and dword [edi + 0x78], 0
lea ecx, [ebp - 0x10]
push 0x44c8c0
call fcn.00402a4c
and dword [ebp - 4], 0
lea eax, [edi + 0x18]
mov edx, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
call fcn.00404fc6
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401759
add bl, 1
je 0x40a073
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a229
lea eax, [edi + 0x18]
push eax
lea ecx, [edi + 0x1c]
call fcn.004023ce
push str..part
lea ecx, [edi + 0x1c]
call fcn.0040145f
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call fcn.0040be5e
test eax, eax
jne 0x40a229
cmp dword [ebp - 0x14], 3
je 0x40a0bb
cmp dword [ebp - 0x14], 4
je 0x40a0bb
mov eax, 0x2ee6
jmp 0x40a229
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040aa4d
test eax, eax
jne 0x40a229
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
lea eax, [edi + 0x7c]
mov dword [ebp - 4], 1
cmp dword [eax], ebx
jbe 0x40a0f1
push 4
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040268c
push eax
lea ecx, [ebp - 0x3c]
call fcn.004024c1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
push str.POST
push dword [ebp + 8]
push esi
call fcn.0040ae86
mov ebx, eax
test ebx, ebx
je 0x40a148
cmp ebx, 0xe0000013
je 0x40a214
push 0
push ebx
push ecx
lea ecx, [edi + 0xc]
call fcn.0040c522
jmp 0x40a214
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x18]
push eax
push esi
call fcn.0040a4d7
mov ebx, eax
test ebx, ebx
jne 0x40a1c6
cmp dword [edi + 0x98], 0xc8
jne 0x40a1c1
call fcn.0040268c
push eax
lea ecx, [ebp + 8]
call fcn.004024c1
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x40]
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.0040a760
mov ecx, dword [ebp + 8]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.00401759
jmp 0x40a1c6
mov ebx, 0xe000002b
lea ecx, [ebp - 0x28]
call fcn.0040c356
mov esi, dword [ebp - 0x1c]
mov edi, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push 0
push esi
call edi
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
and dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x38], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.0040c356
lea ecx, [ebp - 0x30]
call fcn.0040c337
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00401759
lea ecx, [ebp - 0x38]
call fcn.0040c337
mov eax, ebx
call fcn.004420b6
ret 8