Function at 0x488770
Capabilities:
Check http status code
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf0a5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], ecx
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
call fcn.00474070
mov byte [ebp - 4], 1
push str..tmp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004697e0
add esp, 0xc
mov byte [ebp - 4], 2
xor edi, edi
mov ecx, dword [ebp - 0x20]
call fcn.00496790
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
cmovne edi, eax
xor al, al
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x11], al
sub esp, 8
lea ecx, [ebp - 0x50]
call fcn.00468fb0
push ebx
push ebx
push ebx
push 1
push 0x4ec298
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x488a71
push 0xd
lea eax, [ebp - 0x38]
push eax
call fcn.0048bb10
mov esi, eax
mov byte [ebp - 4], 3
sub esp, 8
lea ecx, [ebp - 0x50]
call fcn.00468e90
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push dword [esi]
push dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call eax
mov esi, eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004608f0
test esi, esi
je 0x488a50
lea ecx, [ebp - 0x1c]
call fcn.00475b00
mov esi, eax
mov byte [ebp - 4], 4
push 0x11
lea eax, [ebp - 0x34]
push eax
call fcn.0048bb10
mov byte [ebp - 4], 5
push str.ekpgae4
push dword [esi]
push dword [eax]
push 0x64
lea eax, [ebp - 0x38]
push eax
call fcn.004953f0
mov esi, eax
mov byte [ebp - 4], 6
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00468d70
push ebx
push 0x8400f200
push ebx
push ebx
push ebx
push dword [esi]
push ebx
mov esi, dword [ebp - 0x28]
push esi
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.004608f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004608f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004608f0
cmp dword [ebp - 0x18], ebx
je 0x488a3f
sub esp, 8
lea ecx, [ebp - 0x50]
call fcn.00468b30
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x488a2c
lea edx, [ebx + 0x13]
lea ecx, [ebp - 0x18]
call fcn.00473000
cmp eax, 0xc8
jne 0x488a2c
lea edx, [ebx + 5]
lea ecx, [ebp - 0x18]
call fcn.00473000
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x488a2c
cmp eax, edi
je 0x488a2c
xor edi, edi
mov dword [ebp - 0x24], edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
je 0x4889e4
mov dword [ebp - 0x1c], edi
push 0x10000
lea ecx, [ebp - 0x34]
call fcn.00469500
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x34]
or ebx, 1
mov dword [ebp - 0x44], ebx
mov ebx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
sub esp, 8
lea ecx, [ebp - 0x60]
call fcn.00468a10
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x18]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4889ce
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4889ce
mov ebx, dword [ebp - 0x44]
and ebx, 0xfffffffe
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4889ce
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x488975
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x34]
call fcn.00469480
mov edi, dword [ebp - 0x24]
cmp edi, dword [ebp - 0x48]
jne 0x488a19
push ecx
lea ecx, [ebp - 0x38]
call fcn.0047ab20
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
mov edx, 1
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x11], cl
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x488a29
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x28]
sub esp, 8
lea ecx, [ebp - 0x60]
call fcn.004688f0
push dword [ebp - 0x18]
mov eax, dword [eax + 8]
call eax
sub esp, 8
lea ecx, [ebp - 0x60]
call fcn.004688f0
push esi
mov eax, dword [eax + 8]
call eax
sub esp, 8
lea ecx, [ebp - 0x60]
call fcn.004688f0
push dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call eax
cmp byte [ebp - 0x2c], 0
je 0x488a71
mov ecx, dword [ebp - 0x54]
call fcn.00489860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004608f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004608f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret