Function at 0x4249d0
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Get http content length
Parse url
Read data from internet
Receive and write data from server to client
Receive data
Resolve function by parsing pe exports
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44713e
mov eax, dword fs:[0]
push eax
mov eax, 0x3dc8
call fcn.00434490
mov eax, dword [0x4571a0]
xor eax, esp
mov dword [esp + 0x3dc0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4571a0]
xor eax, esp
push eax
lea eax, [esp + 0x3ddc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3dec]
xor esi, esi
push 0x3c
lea eax, [esp + 0x58]
mov edi, ecx
push esi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
call fcn.00430980
mov eax, 0x800
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], eax
lea eax, [esp + 0x1e0]
lea ecx, [esp + 0x5e0]
mov dword [esp + 0x7c], eax
mov eax, 0x200
mov dword [esp + 0x70], ecx
mov ebx, 8
add esp, 0xc
lea edx, [esp + 0xdd4]
lea ecx, [esp + 0x3d4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x54], 0x3c
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], ecx
cmp dword [ebp + 0x18], ebx
jb 0x424a98
mov ecx, dword [ebp + 4]
jmp 0x424a9b
lea ecx, [ebp + 4]
lea edx, [esp + 0x54]
push edx
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x425072
push 0
push 0
push 0
push 0
push 0x44dcf8
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x424ad5
lea esi, [eax - 2]
jmp 0x425070
cmp dword [edi + 0xc], esi
je 0x424ae2
or esi, 0xffffffff
jmp 0x425065
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push 0
push 0
push 3
push eax
push ecx
mov ecx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x5ec]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x424b1a
lea esi, [eax - 2]
jmp 0x425056
cmp dword [edi + 0xc], esi
je 0x424b27
or esi, 0xffffffff
jmp 0x425056
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push 0
push edx
cmp dword [ebp + 0x38], esi
je 0x424b95
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esp + 0x14], eax
mov eax, str.Content_Type:_application_x_www_form_urlencoded__charsetUTF_8__r_n
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424b60
mov ecx, dword [esp + 0x14]
sub eax, edx
push 0xa0000000
sar eax, 1
push eax
push str.Content_Type:_application_x_www_form_urlencoded__charsetUTF_8__r_n
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x424dbd
lea esi, [eax - 3]
jmp 0x425047
push 0x44ddac
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp byte [0x45bd84], 0
mov dword [esp + 0x14], eax
je 0x424dbd
lea esi, [esp + 0x19c]
call fcn.004137b0
push eax
lea edi, [esp + 0x1bc]
mov dword [esp + 0x3de8], 0
call fcn.00425c60
add esp, 4
mov byte [esp + 0x3de4], 2
cmp dword [esp + 0x1b4], ebx
jb 0x424bfa
mov ecx, dword [esp + 0x1a0]
push ecx
call fcn.0042c65c
add esp, 4
lea eax, [esp + 0x1b8]
xor edx, edx
push eax
mov ebx, 0x44ddc8
lea esi, [esp + 0x38]
mov dword [esp + 0x1b8], 7
mov dword [esp + 0x1b4], 0
mov word [esp + 0x1a4], dx
call fcn.00415390
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x3dec], 3
call fcn.00405510
mov ebx, 8
mov byte [esp + 0x3de4], 2
cmp dword [esp + 0x4c], ebx
jb 0x424c6b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042c65c
add esp, 4
mov edx, dword [esp + 0x1bc]
cmp dword [esp + 0x1d0], ebx
jae 0x424c82
lea edx, [esp + 0x1bc]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424c87
sub eax, esi
push 0xa0000000
sar eax, 1
push eax
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x424cc9
lea esi, [esp + 0x1b8]
mov dword [esp + 0x18], 0xfffffffd
call fcn.00404e40
mov esi, dword [esp + 0x18]
jmp 0x425047
lea esi, [esp + 0x90]
call fcn.00413400
lea ecx, [esp + 0x34]
mov byte [esp + 0x3de4], 4
call fcn.00429920
mov edi, eax
lea esi, [esp + 0x180]
mov byte [esp + 0x3de4], 5
call fcn.004137b0
cmp dword [edi + 0x18], ebx
jb 0x424d06
mov edi, dword [edi + 4]
jmp 0x424d09
add edi, 4
cmp dword [eax + 0x18], ebx
jb 0x424d13
mov eax, dword [eax + 4]
jmp 0x424d16
add eax, 4
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetSetCookieW]
cmp dword [esp + 0x198], ebx
jb 0x424d3a
mov eax, dword [esp + 0x184]
push eax
call fcn.0042c65c
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], edi
mov word [esp + 0x184], cx
cmp dword [esp + 0x4c], ebx
jb 0x424d6a
mov edx, dword [esp + 0x38]
push edx
call fcn.0042c65c
add esp, 4
mov dword [esp + 0x4c], esi
xor eax, eax
lea esi, [esp + 0x90]
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
call fcn.004278e0
mov dword [esp + 0x3de4], 0xffffffff
mov byte [0x45bd84], 0
cmp dword [esp + 0x1d0], ebx
jb 0x424db0
mov ecx, dword [esp + 0x1bc]
push ecx
call fcn.0042c65c
add esp, 4
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, 8
cmp dword [esp + 0x14], 0
jne 0x424dce
mov esi, 0xfffffffd
jmp 0x425056
cmp dword [edi + 0xc], 0
je 0x424ddc
or esi, 0xffffffff
jmp 0x425047
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x424dff
lea esi, [eax - 3]
jmp 0x425047
cmp dword [edi + 0xc], 0
je 0x424e0d
or esi, 0xffffffff
jmp 0x425047
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x58]
push eax
push 0x20000013
push ecx
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x425042
cmp dword [esp + 0x50], 0x190
jae 0x425042
cmp dword [ebp + 0x30], 0
je 0x425047
cmp dword [ebp + 0x50], 0
je 0x424ef8
mov eax, ebp
call fcn.00404e70
push eax
lea edx, [esp + 0x1a0]
push edx
call fcn.004253e0
lea esi, [ebp + 0x1c]
mov ebx, 6
mov edi, esi
lea eax, [esp + 0x34]
mov dword [esp + 0x3de4], ebx
call fcn.00419980
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x3dec], 7
call fcn.00405510
mov byte [esp + 0x3de4], bl
cmp dword [esp + 0x4c], 8
jb 0x424eb8
mov eax, dword [esp + 0x38]
push eax
call fcn.0042c65c
add esp, 4
push 0
lea ecx, [esp + 0x1a0]
push ecx
or eax, 0xffffffff
call fcn.00415740
mov dword [esp + 0x3de4], 0xffffffff
cmp dword [esp + 0x1b4], 8
jb 0x425014
mov edx, dword [esp + 0x1a0]
push edx
call fcn.0042c65c
add esp, 4
jmp 0x425014
cmp dword [ebp + 0x54], 0
je 0x425014
lea ecx, [esp + 0x180]
call fcn.00419ad0
push 1
push 0x44ddd0
lea eax, [esp + 0x188]
mov dword [esp + 0x3dec], ebx
call fcn.00415850
mov eax, ebp
call fcn.00404e70
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004253e0
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x188]
mov byte [esp + 0x3dec], 9
call fcn.00415740
mov byte [esp + 0x3de4], 8
cmp dword [esp + 0x4c], ebx
jb 0x424f6f
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042c65c
add esp, 4
lea esi, [ebp + 0x1c]
mov edi, esi
lea eax, [esp + 0x34]
call fcn.00419980
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x3dec], 0xa
call fcn.00405510
mov byte [esp + 0x3de4], 8
cmp dword [esp + 0x4c], ebx
jb 0x424fab
mov edx, dword [esp + 0x38]
push edx
call fcn.0042c65c
add esp, 4
xor eax, eax
push eax
lea ecx, [esp + 0x184]
mov word [esp + 0x3c], ax
mov edi, 7
push ecx
or eax, 0xffffffff
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
call fcn.00415740
mov dword [esp + 0x3de4], 0xffffffff
cmp dword [esp + 0x198], ebx
jb 0x424ff8
mov edx, dword [esp + 0x184]
push edx
call fcn.0042c65c
add esp, 4
xor eax, eax
mov dword [esp + 0x198], edi
mov dword [esp + 0x194], 0
mov word [esp + 0x184], ax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x20000005
push eax
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x42509c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffffffc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x425056
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x425065
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x3ddc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3dc0]
xor ecx, esp
call fcn.0042c667
add esp, 0x3dd4
ret 4
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], 0
je 0x4250ab
or esi, 0xffffffff
jmp 0x425047
cmp dword [ebp + 0x34], 8
jb 0x4250b6
mov eax, dword [ebp + 0x20]
jmp 0x4250b9
lea eax, [ebp + 0x20]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4250e0
mov esi, 0xfffffffb
jmp 0x425047
mov eax, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x20], 0
test eax, eax
jbe 0x425190
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0xc], 0
jne 0x4251aa
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0x2800
lea ecx, [esp + 0x15dc]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4251af
mov ecx, dword [esp + 0x2c]
sub edi, dword [esp + 0x20]
mov eax, ecx
sub eax, edi
imul eax, eax, 0x64
xor edx, edx
div ecx
test eax, eax
jge 0x42514a
xor eax, eax
jmp 0x425154
cmp eax, 0x64
jle 0x425154
mov eax, 0x64
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x42516d
mov edx, dword [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x4c]
push 0
push 2
push eax
push edx
call ecx
add esp, 0x14
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x15e0]
push edx
push ebx
call esi
test eax, eax
je 0x4251b6
test edi, edi
ja 0x4250fc
mov esi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
ja 0x425047
xor esi, esi
jmp 0x425047
or esi, 0xffffffff
jmp 0x425194
mov esi, 0xfffffffa
jmp 0x425194
mov esi, 0xfffffff9
jmp 0x425194