Function at 0x440e70
Capabilities:
Check http status code
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
mov dword [ebp - 0xa30], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x186a0
mov dword [ebp - 8], 0
push 0x186a0
call fcn.0046fc69
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x440eba
jmp 0x4413ca
cmp dword [ebp + 0xc], 0
jne 0x440ed0
mov ecx, dword [ebp - 0xa30]
call fcn.00440e20
jmp 0x4413ca
mov dword [ebp - 0xc], 0x186a0
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0046fba0
add esp, 0xc
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x16
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x440f13
mov ecx, dword [ebp - 0xa30]
call fcn.00440e20
jmp 0x4413ca
mov dword [ebp - 0xc], 4
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x20000013
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x440f47
mov ecx, dword [ebp - 0xa30]
call fcn.00440e20
jmp 0x4413ca
mov edx, dword [ebp + 8]
cmp dword [edx], 0xc8
je 0x440f62
mov eax, dword [ebp + 8]
cmp dword [eax], 0xce
je 0x440f62
jmp 0x4413ca
mov cx, word [0x492508]
mov word [ebp - 0x420], cx
push 0x1fe
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0xc], 0x186a0
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0046fba0
add esp, 0xc
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x36
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x440fd1
push 0xff
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.00442980
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x186a0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x441016
push 0xa
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00470d43
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dx, word [0x49250c]
mov word [ebp - 0x220], dx
push 0x1fe
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0xc], 0x186a0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0046fba0
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xb
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x441085
push 0xff
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.00442980
add esp, 0xc
mov dx, word [0x492510]
mov word [ebp - 0xa28], dx
push 0x1fe
push 0
lea eax, [ebp - 0xa26]
push eax
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0xc], 0x186a0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0046fba0
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x3f
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4410f4
push 0xff
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xa28]
push ecx
call fcn.00442980
add esp, 0xc
push 0x492514
lea edx, [ebp - 0xa28]
push edx
call fcn.0046ff07
add esp, 8
test eax, eax
jne 0x441130
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x441180
mov edx, dword [ebp + 8]
mov dword [ebp - 0xa34], edx
mov eax, dword [ebp - 0xa34]
mov ecx, dword [ebp - 0xa34]
mov edx, dword [eax + 0x10]
or edx, dword [ecx + 0x14]
jne 0x441180
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.004170d0
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.004170d0
mov edx, dword [ebp - 0xa30]
cmp dword [edx + 4], 0
je 0x4411a9
mov eax, dword [ebp - 0xa30]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp - 0xa30]
mov ecx, dword [eax + 4]
call ecx
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0xa38], edx
mov eax, dword [ebp - 0xa38]
mov ecx, dword [ebp - 0xa38]
mov edx, dword [eax + 8]
or edx, dword [ecx + 0xc]
je 0x441238
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa3c], eax
mov ecx, dword [ebp - 0xa3c]
mov edx, dword [ebp - 0xa3c]
mov eax, dword [ecx + 0x10]
or eax, dword [edx + 0x14]
je 0x441238
mov ecx, dword [ebp + 8]
push 0
push 0x64
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00470a30
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x14]
push esi
mov ecx, dword [ecx + 0x10]
push ecx
push edx
push eax
call fcn.004709c0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0xa30]
cmp dword [eax + 4], 0
je 0x441238
mov ecx, dword [ebp - 0xa30]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 2
mov ecx, dword [ebp - 0xa30]
mov edx, dword [ecx + 4]
call edx
add esp, 0xc
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0xa30]
cmp dword [eax + 8], 0
je 0x441387
push 0x400
lea ecx, [ebp - 0x828]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa30]
call fcn.00441b40
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x441285
jmp 0x441387
push 0
lea ecx, [ebp - 0xa2c]
push ecx
mov edx, dword [ebp - 0x424]
push edx
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4412af
jmp 0x441387
mov edx, dword [ebp - 0xa2c]
cmp edx, dword [ebp - 0x424]
je 0x4412c2
jmp 0x441387
mov eax, dword [ebp - 0xa2c]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xa40], edx
mov eax, dword [ebp - 0xa40]
mov ecx, dword [ebp - 0xa40]
mov edx, dword [eax + 0x10]
or edx, dword [ecx + 0x14]
je 0x441382
mov eax, dword [ebp + 8]
push 0
push 0x64
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
call fcn.00470a30
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x14]
push esi
mov ecx, dword [ecx + 0x10]
push ecx
push edx
push eax
call fcn.004709c0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], eax
je 0x441382
mov eax, dword [ebp + 8]
push 0
push 0x64
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
call fcn.00470a30
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x14]
push esi
mov ecx, dword [ecx + 0x10]
push ecx
push edx
push eax
call fcn.004709c0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0xa30]
cmp dword [eax + 4], 0
je 0x441382
mov ecx, dword [ebp - 0xa30]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 2
mov ecx, dword [ebp - 0xa30]
mov edx, dword [ecx + 4]
call edx
add esp, 0xc
jmp 0x441242
push str.chunked
lea eax, [ebp - 0xa28]
push eax
call fcn.0046ff07
add esp, 8
test eax, eax
jne 0x4413b1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 4], 1
xor ecx, ecx
jne 0x440e9f
cmp dword [ebp - 8], 0
je 0x4413dc
mov edx, dword [ebp - 8]
push edx
call fcn.0046fb04
add esp, 4
mov eax, dword [ebp - 4]
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret 0xc