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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0da0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
call fcn.00413b40
add esp, 4
mov byte [ebp - 4], 1
push str..tmp
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00405c50
add esp, 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp - 0x28]
call fcn.00447a20
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x41ecf9
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x11], 0
lea esi, [ebp - 0x50]
call fcn.00406c70
push edi
push edi
push edi
push 1
push 0x4e9d20
mov edx, dword [eax + 8]
call edx
mov ebx, eax
mov dword [ebp - 0x48], ebx
cmp ebx, edi
je 0x41ef7f
push 0xd
lea ecx, [ebp - 0x24]
call fcn.00440490
mov byte [ebp - 4], 3
mov edi, dword [eax]
lea esi, [ebp - 0x5c]
call fcn.00406d60
push 0
push 0
push 3
push 0
push 0
push 0
push edi
push ebx
mov eax, dword [eax + 8]
call eax
mov esi, eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00405410
test esi, esi
je 0x41ef63
lea ecx, [ebp - 0x3c]
call fcn.004154a0
mov esi, eax
mov bl, 4
mov byte [ebp - 4], bl
push 0x11
lea ecx, [ebp - 0x1c]
call fcn.00440490
mov byte [ebp - 4], 5
mov eax, dword [eax]
push str.ehpg1215
mov ecx, dword [esi]
push ecx
push eax
push 0x64
lea edi, [ebp - 0x20]
call fcn.00448810
add esp, 0x10
mov byte [ebp - 4], 6
mov edi, dword [eax]
lea esi, [ebp - 0x5c]
call fcn.00406e50
push 0
push 0x8400f200
push 0
push 0
push 0
push edi
push 0
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [eax + 8]
call eax
mov edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.00405410
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00405410
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00405410
test edi, edi
je 0x41ef4f
lea esi, [ebp - 0x5c]
call fcn.00407030
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov ecx, dword [eax + 8]
call ecx
cmp eax, ebx
je 0x41ef3e
push 0x13
lea ecx, [ebp - 0x24]
call fcn.00412e00
add esp, 4
cmp eax, 0xc8
jne 0x41ef3e
push 5
lea ecx, [ebp - 0x24]
call fcn.00412e00
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, ebx
jle 0x41ef3e
cmp esi, dword [ebp - 0x2c]
je 0x41ef3e
mov dword [ebp - 0x30], ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
cmp eax, 0xffffffff
je 0x41ef06
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x10000
call fcn.004492a0
mov byte [ebp - 4], 8
or dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 4]
mov ebx, dword [eax]
lea esi, [ebp - 0x5c]
call fcn.00407120
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x41eeb7
cmp dword [ebp - 0x1c], 0
je 0x41eeb7
mov al, 1
jmp 0x41eeb9
xor al, al
test byte [ebp - 0x18], 1
je 0x41eec3
and dword [ebp - 0x18], 0xfffffffe
test al, al
je 0x41eeed
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41eeed
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x30], eax
jmp 0x41ee86
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 4], 7
lea edi, [ebp - 0x2c]
call fcn.00449350
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x30], esi
jne 0x41ef2b
lea esi, [ebp - 0x20]
call fcn.00417670
push 1
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41ef2b
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41ef3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x5c]
call fcn.00407210
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 8]
call edx
lea esi, [ebp - 0x5c]
call fcn.00407210
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [eax + 8]
call edx
mov ebx, dword [ebp - 0x48]
lea esi, [ebp - 0x5c]
call fcn.00407210
push ebx
mov eax, dword [eax + 8]
call eax
cmp byte [ebp - 0x11], 0
je 0x41ef7f
mov esi, dword [ebp + 8]
call fcn.0041fde0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00405410
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405410
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 4