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

Disassembly:
mov eax, 0x45fb99
call fcn.0044b154
sub esp, 0x8c8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.fs::OpenInetRequestWithStatusCheck_1474
mov esi, ecx
call fcn.00449520
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 0x4218cc
mov ecx, dword [edi + 4]
jmp 0x4218cf
lea ecx, [edi + 4]
push eax
push ecx
push str.fs::OpenInetRequestWithStatusCheck_1474
push str.___s__url_s_len_post__d_
push ebx
call fcn.0043a6e3
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.0041e77d
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x421914
mov eax, dword [eax + 4]
jmp 0x421917
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.004192fd
mov eax, dword [esi]
cmp eax, ebx
jne 0x42196b
push 0x468d4a
lea ecx, [ebp - 0x34]
call fcn.00419fe3
lea eax, [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0041a005
mov esi, eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_open_internet:_err_d
jmp 0x421c57
cmp dword [ebp - 0x88], 0x10
mov ecx, dword [ebp - 0x9c]
jae 0x421980
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 0x4219d2
push 0x468d4a
lea ecx, [ebp - 0x34]
call fcn.00419fe3
push 0xc351
push 1
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0042b98e
mov esi, eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_connect_internet:_err_d
jmp 0x421c57
cmp dword [ebp - 0xa4], 4
mov dword [ebp - 0x18], 0x84000900
jne 0x4219e9
mov dword [ebp - 0x18], 0x84800900
cmp dword [edi + 0x30], ebx
mov edx, 0x469fc0
je 0x4219f8
mov edx, str.POST
cmp dword [ebp - 0x6c], 0x10
mov ecx, dword [ebp - 0x80]
jae 0x421a04
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 0x421a51
push 0x468d4a
lea ecx, [ebp - 0x34]
call fcn.00419fe3
lea eax, [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0041a005
mov esi, eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_open_request:_err_d
jmp 0x421c57
push str.Connection:_Close_r_n
lea ecx, [ebp - 0x34]
call fcn.00419fe3
mov byte [ebp - 4], 9
cmp dword [edi + 0x30], ebx
je 0x421a74
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [ebp - 0x34]
call fcn.00413613
lea eax, [ebp - 0xa0]
push eax
call fcn.004285eb
test al, al
pop ecx
je 0x421ab4
push str._COOKIE_
lea ecx, [ebp - 0x60]
call fcn.00419fe3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xa
call fcn.00428606
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.004192fd
cmp dword [esi + 0xc], ebx
jbe 0x421b95
cmp byte [edi + 0x80], bl
je 0x421b95
mov eax, dword [edi + 0x98]
cmp eax, ebx
ja 0x421ae3
cmp dword [edi + 0xb4], ebx
jbe 0x421b95
cmp eax, ebx
jbe 0x421aeb
lea eax, [edi + 0x84]
jmp 0x421af1
lea eax, [edi + 0xa0]
push eax
lea ecx, [ebp - 0x60]
call fcn.0041a15f
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x48], 0x10
mov eax, dword [ebp - 0x5c]
jae 0x421b0a
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 0xc]
push str.__request_range__lu__by__s
push ebx
call fcn.0043a6e3
xor eax, eax
mov byte [ebp - 0x8d4], bl
mov ecx, 0xff
lea edi, [ebp - 0x8d3]
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 - 0x8d4]
push str.Range:_bytes_lu__r_n
push eax
call fcn.0044a185
add esp, 0xc
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x34]
call fcn.00413613
push str.If_Range:
lea ecx, [ebp - 0x34]
call fcn.00413613
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00418dd5
push 0x46e254
lea ecx, [ebp - 0x34]
call fcn.00413613
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.004192fd
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 0x30]
jae 0x421ba1
lea ecx, [ebp - 0x30]
mov eax, dword [esi + 8]
push 0x20000000
push dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x421bf1
push 0x468d4a
lea ecx, [ebp - 0xc0]
call fcn.00419fe3
lea eax, [ebp - 0xc0]
push eax
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.0041a005
mov esi, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_add_request_headers:_err_d
jmp 0x421c57
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004192fd
mov eax, dword [esi + 8]
lea ecx, [edi + 0xdc]
push ecx
lea ecx, [edi + 0x1c]
push ecx
push eax
push edi
call fcn.004215c3
add esp, 0x10
cmp al, bl
jne 0x421c67
push 0x468d4a
lea ecx, [ebp - 0xc0]
call fcn.00419fe3
push 0xc352
push 1
lea eax, [ebp - 0xc0]
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 0xe
call fcn.0042b98e
mov esi, eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_send_request:_err_d
push esi
call fcn.00419950
add esp, 0xc
mov ecx, eax
jmp fcn.0041a041
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.0043a6e3
xor eax, eax
mov byte [ebp - 0x4d4], bl
mov ecx, 0xff
lea edi, [ebp - 0x4d3]
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 - 0x4d4]
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 0x421cf4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4d4]
push eax
add ecx, 0x84
call fcn.00419a13
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], ebx
jne 0x421d33
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4d4]
push ecx
push 0xb
push eax
mov dword [ebp - 0x14], 0x400
call edi
test eax, eax
je 0x421d33
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4d4]
push eax
add ecx, 0xa0
call fcn.00419a13
lea eax, [ebp - 0x4d4]
push str.X_HTML_PackageType
push eax
mov dword [ebp - 0x14], 0x400
call fcn.0044a350
mov eax, dword [esi + 8]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4d4]
push ecx
push 0xffff
push eax
call edi
test eax, eax
je 0x421d7d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4d4]
push eax
add ecx, 0xbc
call fcn.00419a13
cmp dword [esi + 0xc], ebx
jbe 0x421dfe
mov eax, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x35
push eax
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x40], 0x400
call edi
test eax, eax
je 0x421ded
lea eax, [ebp - 0x4d4]
push eax
push str.___s
push ebx
call fcn.0043a6e3
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4d4]
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.0044a151
add esp, 0x14
cmp eax, 3
jne 0x421ded
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
push dword [esi + 0xc]
push str.__part_start:__d_byte
push ebx
call fcn.0043a6e3
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.0043a6e3
add esp, 0xc
lea esi, [ebp - 0xa4]
call fcn.0040cc2d
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x3c]
call fcn.00419c15
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret