Function at 0x402a20
Capabilities:
Check http status code
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
and dword [ebp - 0x6c], 0
and dword [ebp - 0x70], 0
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 4
and dword [ebp - 0x54], 0
or dword [ebp - 0x60], 0xffffffff
and dword [ebp - 0x68], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x64], eax
push 0xc
push 0
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.0040184b
push eax
push 0x40957c
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10000000
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call dword [0x40dc4c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x402ab0
jmp 0x402cbe
push 0
push 0
push 0
push 0
call dword [ebp - 0x64]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
call dword [ebp - 0x64]
mov dword [ebp - 4], eax
push 0x4029e0
push dword [ebp - 0x68]
call dword [0x40dc60]
cmp eax, 0xffffffff
jne 0x402ae9
jmp 0x402cbe
lea eax, [ebp - 0xc]
push eax
push 0x84000000
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x68]
call dword [0x40dc50]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x402b22
jmp 0x402cbe
push 0x2710
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402b41
jmp 0x402cbe
push 0x4e20
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402b60
jmp 0x402cbe
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x20000013
push dword [ebp - 0xc]
call dword [0x40dc54]
test eax, eax
je 0x402b85
cmp dword [ebp - 0x70], 0xc8
je 0x402b8f
jmp 0x402cbe
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x20000005
push dword [ebp - 0xc]
call dword [0x40dc54]
test eax, eax
je 0x402bb1
cmp dword [ebp - 0x5c], 0
ja 0x402bbb
jmp 0x402cbe
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x60], eax
xor eax, eax
inc eax
je 0x402cbe
and dword [ebp - 0x74], 0
push 0x400
push 0
lea eax, [ebp - 0x4a0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x28
lea eax, [ebp - 0x9c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x9c], 0x28
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0x400
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xc]
call dword [0x40dc58]
test eax, eax
jne 0x402c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x402c71
push 0x4e20
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402c6f
jmp 0x402cbe
jmp 0x402c75
jmp 0x402cbe
cmp dword [ebp - 0x84], 0
jne 0x402c82
jmp 0x402cbe
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x5c]
jne 0x402cb9
mov dword [ebp - 0x6c], 1
jmp 0x402cbe
jmp 0x402bd9
push dword [ebp - 0xc]
call dword [0x40dc5c]
push dword [ebp - 0x68]
call dword [0x40dc5c]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], 1
je 0x402cfa
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x6c]
leave
ret 8