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

Disassembly:
mov eax, 0x46690f
call fcn.00451324
sub esp, 0x8ac
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.fs::OpenInetRequestWithStatusCheck_1515
mov esi, ecx
call fcn.0044f750
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 0x42426f
mov ecx, dword [edi + 4]
jmp 0x424272
lea ecx, [edi + 4]
push eax
push ecx
push str.fs::OpenInetRequestWithStatusCheck_1515
push str.___s__url_s_len_post__d_
push ebx
call fcn.0043fb8a
add esp, 0x14
push edi
lea eax, [ebp - 0xa4]
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.00420d4e
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x4242b7
mov eax, dword [eax + 4]
jmp 0x4242ba
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.0041a87c
mov eax, dword [esi]
cmp eax, ebx
jne 0x424319
push 0x470e4a
lea ecx, [ebp - 0x34]
call fcn.0041b5d0
lea eax, [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0041b5f2
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.0041aecf
add esp, 0xc
mov ecx, eax
jmp fcn.0041b62e
cmp dword [ebp - 0x88], 0x10
mov ecx, dword [ebp - 0x9c]
jae 0x42432e
lea ecx, [ebp - 0x9c]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x68]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x424356
push 0xc351
push edi
push str.Cant_connect_internet
jmp 0x424551
cmp dword [ebp - 0xa4], 4
mov dword [ebp - 0x18], 0x84000900
jne 0x42436d
mov dword [ebp - 0x18], 0x84800900
cmp dword [edi + 0x30], ebx
mov edx, 0x472108
je 0x42437c
mov edx, str.POST
cmp dword [ebp - 0x6c], 0x10
mov ecx, dword [ebp - 0x80]
jae 0x424388
lea ecx, [ebp - 0x80]
push ebx
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 0x4243ab
push ebx
push edi
push str.Cant_open_request
jmp 0x424551
push str.Connection:_Close_r_n
lea ecx, [ebp - 0x60]
call fcn.0041b5d0
mov byte [ebp - 4], 5
cmp dword [edi + 0x30], ebx
je 0x4243ce
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x60]
call fcn.00414b4a
lea eax, [ebp - 0xa0]
push eax
call fcn.0042b7f7
test al, al
pop ecx
je 0x42440e
push str._COOKIE_
lea ecx, [ebp - 0x34]
call fcn.0041b5d0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.0042b828
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0041a87c
cmp dword [esi + 0xc], ebx
jbe 0x4244ef
cmp byte [edi + 0x80], bl
je 0x4244ef
mov eax, dword [edi + 0x98]
cmp eax, ebx
ja 0x42443d
cmp dword [edi + 0xb4], ebx
jbe 0x4244ef
cmp eax, ebx
jbe 0x424445
lea eax, [edi + 0x84]
jmp 0x42444b
lea eax, [edi + 0xa0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041b74c
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x424464
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0xc]
push str.__request_range__lu__by__s
push ebx
call fcn.0043fb8a
xor eax, eax
mov byte [ebp - 0x8b8], bl
mov ecx, 0xff
lea edi, [ebp - 0x8b7]
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 - 0x8b8]
push str.Range:_bytes_lu__r_n
push eax
call fcn.004503b5
add esp, 0xc
lea eax, [ebp - 0x8b8]
push eax
lea ecx, [ebp - 0x60]
call fcn.00414b4a
push str.If_Range:
lea ecx, [ebp - 0x60]
call fcn.00414b4a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x60]
call fcn.0041a2c5
push 0x476adc
lea ecx, [ebp - 0x60]
call fcn.00414b4a
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0041a87c
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x48], 0x10
mov ecx, dword [ebp - 0x5c]
jae 0x4244fb
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 0x42451b
push edi
push str.Cant_add_request_headers
jmp 0x424551
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0041a87c
call fcn.004248cd
lea eax, [edi + 0x1c]
push eax
push edi
push esi
lea ecx, [edi + 0xdc]
call fcn.00423f83
add esp, 0xc
cmp al, bl
jne 0x424556
push 0xc352
push edi
push str.Cant_send_request
call fcn.0042477b
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.0043fb8a
xor eax, eax
mov byte [ebp - 0x4b8], bl
mov ecx, 0xff
lea edi, [ebp - 0x4b7]
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 - 0x4b8]
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 0x4245e3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4b8]
push eax
add ecx, 0x84
call fcn.0041af92
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], ebx
jne 0x424622
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4b8]
push ecx
push 0xb
push eax
mov dword [ebp - 0x14], 0x400
call edi
test eax, eax
je 0x424622
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4b8]
push eax
add ecx, 0xa0
call fcn.0041af92
lea eax, [ebp - 0x4b8]
push str.X_HTML_PackageType
push eax
mov dword [ebp - 0x14], 0x400
call fcn.00450670
mov eax, dword [esi + 8]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4b8]
push ecx
push 0xffff
push eax
call edi
test eax, eax
je 0x42466c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4b8]
push eax
add ecx, 0xbc
call fcn.0041af92
cmp dword [esi + 0xc], ebx
jbe 0x4246ed
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x4b8]
push ecx
push 0x35
push eax
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x40], 0x400
call edi
test eax, eax
je 0x4246dc
lea eax, [ebp - 0x4b8]
push eax
push str.___s
push ebx
call fcn.0043fb8a
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4b8]
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.00450381
add esp, 0x14
cmp eax, 3
jne 0x4246dc
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
push dword [esi + 0xc]
push str.__part_start:__d_byte
push ebx
call fcn.0043fb8a
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.0043fb8a
add esp, 0xc
lea esi, [ebp - 0xa4]
call fcn.0040dde7
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x3c]
call fcn.0041b202
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret