Function at 0x424fed
Capabilities:
Connect to http server
Create http request
Get http content length

Disassembly:
mov eax, 0x4682b0
call fcn.00452ab4
sub esp, 0x8b4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.fs::OpenInetRequestWithStatusCheck_1544
mov esi, ecx
call fcn.00450e4d
pop ecx
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x30]
jb 0x425029
mov ecx, dword [edi + 4]
jmp 0x42502c
lea ecx, [edi + 4]
push eax
push ecx
push str.fs::OpenInetRequestWithStatusCheck_1544
push str.___s__url_s_len_post__d_
push ebx
call fcn.004418d2
add esp, 0x14
push edi
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 1
call fcn.00401540
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
mov dword [edi + 0xdc], ebx
call fcn.00421aff
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x425071
mov eax, dword [eax + 4]
jmp 0x425074
add eax, 4
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 1
lea ecx, [ebp - 0x34]
mov dword [esi], eax
call fcn.0041b413
mov eax, dword [esi]
cmp eax, ebx
jne 0x4250d3
push 0x472e5a
lea ecx, [ebp - 0x34]
call fcn.0041c1c2
lea eax, [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0041c1e4
mov esi, eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_open_internet:_err_d
push esi
call fcn.0041ba49
add esp, 0xc
mov ecx, eax
jmp fcn.0041c220
cmp dword [ebp - 0x8c], 0x10
mov ecx, dword [ebp - 0xa0]
jae 0x4250e8
lea ecx, [ebp - 0xa0]
push esi
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x425110
push 0xc351
push edi
push str.Cant_connect_internet
jmp 0x425311
cmp dword [ebp - 0xa8], 4
mov dword [ebp - 0x18], 0x84000900
jne 0x425127
mov dword [ebp - 0x18], 0x84800900
cmp dword [edi + 0x30], ebx
mov edx, 0x474144
je 0x425136
mov edx, str.POST
cmp dword [ebp - 0x70], 0x10
mov ecx, dword [ebp - 0x84]
jae 0x425148
lea ecx, [ebp - 0x84]
push esi
push dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x42516b
push ebx
push edi
push str.Cant_open_request
jmp 0x425311
push str.Connection:_Close_r_n
lea ecx, [ebp - 0x60]
call fcn.0041c1c2
mov byte [ebp - 4], 5
cmp dword [edi + 0x30], ebx
je 0x42518e
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x60]
call fcn.004156e1
lea eax, [ebp - 0xa4]
push eax
call fcn.0042c7cc
test al, al
pop ecx
je 0x4251ce
push str._COOKIE_
lea ecx, [ebp - 0x34]
call fcn.0041c1c2
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.0042c7fd
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0041b413
cmp dword [esi + 0xc], ebx
jbe 0x4252af
cmp byte [edi + 0x80], bl
je 0x4252af
mov eax, dword [edi + 0x98]
cmp eax, ebx
ja 0x4251fd
cmp dword [edi + 0xb4], ebx
jbe 0x4252af
cmp eax, ebx
jbe 0x425205
lea eax, [edi + 0x84]
jmp 0x42520b
lea eax, [edi + 0xa0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041c33e
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x425224
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0xc]
push str.__request_range__lu__by__s
push ebx
call fcn.004418d2
xor eax, eax
mov byte [ebp - 0x8c0], bl
mov ecx, 0xff
lea edi, [ebp - 0x8bf]
rep stosd dword es:[edi], eax
add esp, 0x10
push dword [esi + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x8c0]
push str.Range:_bytes_lu__r_n
push eax
call fcn.00451b45
add esp, 0xc
lea eax, [ebp - 0x8c0]
push eax
lea ecx, [ebp - 0x60]
call fcn.004156e1
push str.If_Range:
lea ecx, [ebp - 0x60]
call fcn.004156e1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x60]
call fcn.0041ae5c
push 0x478c70
lea ecx, [ebp - 0x60]
call fcn.004156e1
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0041b413
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x48], 0x10
mov ecx, dword [ebp - 0x5c]
jae 0x4252bb
lea ecx, [ebp - 0x5c]
mov eax, dword [esi + 8]
push 0x20000000
push dword [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
push ebx
jne 0x4252db
push edi
push str.Cant_add_request_headers
jmp 0x425311
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0041b413
call fcn.0042568d
lea eax, [edi + 0x1c]
push eax
push edi
push esi
lea ecx, [edi + 0xdc]
call fcn.00424d3d
add esp, 0xc
cmp al, bl
jne 0x425316
push 0xc352
push edi
push str.Cant_send_request
call fcn.0042553b
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea edi, [esi + 0x10]
push edi
push 0x20000005
push eax
mov dword [edi], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push dword [edi]
push str.__part_length:__d_bytes
push ebx
call fcn.004418d2
xor eax, eax
mov byte [ebp - 0x4c0], bl
mov ecx, 0xff
lea edi, [ebp - 0x4bf]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push ebx
lea ecx, [ebp - 0x14]
push ecx
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [ebp - 0x4c0]
push ecx
mov byte [eax + 0x80], 1
mov eax, dword [esi + 8]
push 0x36
push eax
mov dword [ebp - 0x14], 0x400
call edi
test eax, eax
je 0x4253a3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c0]
push eax
add ecx, 0x84
call fcn.0041bbeb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], ebx
jne 0x4253e2
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0xb
push eax
mov dword [ebp - 0x14], 0x400
call edi
test eax, eax
je 0x4253e2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c0]
push eax
add ecx, 0xa0
call fcn.0041bbeb
lea eax, [ebp - 0x4c0]
push str.X_HTML_PackageType
push eax
mov dword [ebp - 0x14], 0x400
call fcn.00451e00
mov eax, dword [esi + 8]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0xffff
push eax
call edi
test eax, eax
je 0x42542c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c0]
push eax
add ecx, 0xbc
call fcn.0041bbeb
cmp dword [esi + 0xc], ebx
jbe 0x4254ad
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0x35
push eax
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x40], 0x400
call edi
test eax, eax
je 0x42549c
lea eax, [ebp - 0x4c0]
push eax
push str.___s
push ebx
call fcn.004418d2
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c0]
push str.bytes__lu__lu__lu
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
call fcn.00451b11
add esp, 0x14
cmp eax, 3
jne 0x42549c
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
push dword [esi + 0xc]
push str.__part_start:__d_byte
push ebx
call fcn.004418d2
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push eax
push str.__content_length:__d_bytes
push ebx
mov dword [ecx + 0x7c], eax
call fcn.004418d2
add esp, 0xc
lea esi, [ebp - 0xa8]
call fcn.0040e50a
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x3c]
call fcn.0041bdf9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret