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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1e00
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5000f4]
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.00412ec0
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.00405800
add esp, 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp - 0x28]
call fcn.00448950
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
je 0x41f269
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x11], 0
lea esi, [ebp - 0x50]
call fcn.00406720
push edi
push edi
push edi
push 1
push 0x4ead20
mov edx, dword [eax + 8]
call edx
mov ebx, eax
mov dword [ebp - 0x48], ebx
cmp ebx, edi
je 0x41f4ef
push 0xd
lea ecx, [ebp - 0x24]
call fcn.004412c0
mov byte [ebp - 4], 3
mov edi, dword [eax]
lea esi, [ebp - 0x5c]
call fcn.00406810
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.00405020
test esi, esi
je 0x41f4d3
lea ecx, [ebp - 0x3c]
call fcn.00414820
mov esi, eax
mov bl, 4
mov byte [ebp - 4], bl
push 0x11
lea ecx, [ebp - 0x1c]
call fcn.004412c0
mov byte [ebp - 4], 5
mov eax, dword [eax]
push str.espgae4
mov ecx, dword [esi]
push ecx
push eax
push 0x64
lea edi, [ebp - 0x20]
call fcn.00449740
add esp, 0x10
mov byte [ebp - 4], 6
mov edi, dword [eax]
lea esi, [ebp - 0x5c]
call fcn.00406900
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.00405020
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00405020
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00405020
test edi, edi
je 0x41f4bf
lea esi, [ebp - 0x5c]
call fcn.00406ae0
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov ecx, dword [eax + 8]
call ecx
cmp eax, ebx
je 0x41f4ae
push 0x13
lea ecx, [ebp - 0x24]
call fcn.00412130
add esp, 4
cmp eax, 0xc8
jne 0x41f4ae
push 5
lea ecx, [ebp - 0x24]
call fcn.00412130
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, ebx
jle 0x41f4ae
cmp esi, dword [ebp - 0x2c]
je 0x41f4ae
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 0x41f476
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x10000
call fcn.0044a200
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.00406bd0
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 0x41f427
cmp dword [ebp - 0x1c], 0
je 0x41f427
mov al, 1
jmp 0x41f429
xor al, al
test byte [ebp - 0x18], 1
je 0x41f433
and dword [ebp - 0x18], 0xfffffffe
test al, al
je 0x41f45d
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 0x41f45d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x30], eax
jmp 0x41f3f6
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.0044a2b0
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x30], esi
jne 0x41f49b
lea esi, [ebp - 0x20]
call fcn.00417a00
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 0x41f49b
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41f4ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x5c]
call fcn.00406cc0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [eax + 8]
call edx
lea esi, [ebp - 0x5c]
call fcn.00406cc0
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.00406cc0
push ebx
mov eax, dword [eax + 8]
call eax
cmp byte [ebp - 0x11], 0
je 0x41f4ef
mov esi, dword [ebp + 8]
call fcn.004202e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00405020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405020
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