Function at 0x408f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438c69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
mov eax, dword [0x44c41c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x418], ecx
je 0x409549
cmp dword [ebp + 0xc], edi
je 0x409549
push edi
push edi
push edi
push edi
push 1
push edi
lea ecx, [ebp - 0x46c]
call fcn.0043386c
push 0x43ab18
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], edi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x43c], edi
call fcn.00402660
push 0x43ab18
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.00402660
push edi
push 4
lea eax, [ebp - 0x41c]
push eax
push 2
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x42c], edi
mov dword [ebp + 8], edi
mov dword [ebp - 0x41c], 0x7d0
call fcn.00433372
push edi
push 4
lea ecx, [ebp - 0x41c]
push ecx
push 3
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x41c], 1
call fcn.00433372
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x448]
push edx
push esi
mov dword [ebp - 0x41c], edi
mov byte [ebp - 4], 3
call fcn.00433de3
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x428]
push edi
push edi
push eax
push ecx
lea ecx, [ebp - 0x46c]
call fcn.0043422e
cmp eax, edi
mov dword [ebp - 0x430], eax
jne 0x40913d
call fcn.004297f8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
push eax
push ecx
push esi
lea edx, [ebp + 0xc]
push str.GetHttpConnection:_s__s__s
push edx
mov byte [ebp - 4], 4
call fcn.004020b0
mov esi, dword [ebp + 0xc]
add esp, 0x14
add esi, 0xfffffff0
push esi
call fcn.00401b00
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409134
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov byte [ebp - 4], 2
jmp 0x4094b1
mov ecx, dword [ebp - 0x424]
push 0x20000000
push edi
push edi
push 1
push edi
push ecx
push 1
mov ecx, eax
call fcn.004342f6
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x43c], ebx
jne 0x4091db
call fcn.004297f8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebp + 0xc]
push str.OpenRequest:_s
push ecx
mov byte [ebp - 4], 5
call fcn.004020b0
add esp, 8
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x420], esp
push edx
call fcn.00401b60
mov ecx, dword [ebp - 0x418]
call fcn.00408f50
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 2
jmp 0x40949d
push edi
push edi
push edi
push edi
mov ecx, ebx
call fcn.00433db6
cmp eax, edi
jne 0x409218
lea ecx, [ebp + 0xc]
call fcn.00401550
lea eax, [ebp + 0xc]
push str.SendRequest
push eax
mov byte [ebp - 4], 6
call fcn.004020b0
add esp, 4
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x420], esp
push edx
jmp 0x4092dc
lea eax, [ebp - 0x434]
push eax
mov ecx, ebx
call fcn.004334cf
cmp dword [ebp - 0x434], 0xc8
je 0x40924c
lea ecx, [ebp + 0xc]
call fcn.00401550
mov ecx, dword [ebp - 0x434]
push ecx
mov byte [ebp - 4], 7
push str.QueryInfoStatusCode:_d
jmp 0x4092c4
mov esi, dword [ebp + 0xc]
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x42c], eax
jne 0x40929d
lea ecx, [ebp + 0xc]
call fcn.00401550
push esi
lea ecx, [ebp + 0xc]
push str.CreateFile:_s
push ecx
mov byte [ebp - 4], 8
call fcn.004020b0
add esp, 8
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x420], esp
push edx
jmp 0x4092dc
push edi
lea eax, [ebp + 8]
push eax
push 5
mov ecx, ebx
call fcn.004334a8
cmp eax, edi
jne 0x4092fd
lea ecx, [ebp + 0xc]
call fcn.00401550
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 9
push str.QueryInfo:_d
lea edx, [ebp + 0xc]
push edx
call fcn.004020b0
add esp, 8
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x420], esp
push eax
call fcn.00401b60
mov ecx, dword [ebp - 0x418]
call fcn.00408f50
lea ecx, [ebp + 0xc]
call fcn.00405980
mov byte [ebp - 4], 2
jmp 0x40949d
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
mov dword [ebp - 0x438], esi
jmp 0x409310
mov edx, dword [ebx]
push 0x400
lea eax, [ebp - 0x414]
push eax
mov ecx, ebx
call dword [edx + 0x34]
test eax, eax
ja 0x40938a
cmp esi, dword [ebp + 8]
je 0x40937b
lea ecx, [ebp + 0xc]
call fcn.00401550
mov ecx, dword [ebp + 8]
push ecx
push esi
lea edx, [ebp + 0xc]
push str.dwTotalWrite___dwFileSize:_d__d
push edx
mov byte [ebp - 4], 0xa
call fcn.004020b0
add esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x420], esp
push eax
call fcn.00401b60
mov ecx, dword [ebp - 0x418]
call fcn.00408f50
lea ecx, [ebp + 0xc]
call fcn.00405980
mov byte [ebp - 4], 2
jmp 0x40949b
mov dword [ebp - 0x41c], 1
jmp 0x409494
push 0
lea ecx, [ebp - 0x438]
push ecx
push eax
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x414]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x438]
mov eax, dword [ecx]
add esi, edx
test eax, eax
je 0x409310
mov edx, ecx
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x458], ecx
lea ecx, [ebp - 0x458]
push ecx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], esi
call eax
jmp 0x409310
mov dword [ebp - 4], 2
xor edi, edi
cmp ebx, edi
je 0x4094b1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x4c]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
mov esi, dword [ebp - 0x430]
cmp esi, edi
je 0x4094cb
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x46c]
call fcn.00433e71
mov eax, dword [ebp - 0x42c]
cmp eax, edi
je 0x4094e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40950b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40952f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x46c]
mov dword [ebp - 4], 0xffffffff
call fcn.00433ef6
mov eax, dword [ebp - 0x41c]
jmp 0x40954b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004148c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8