Function at 0x10054fe0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016331c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
mov eax, dword [0x101b9578]
push ebx
push esi
push edi
mov dword [esp + 0x854], eax
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
xor esi, esi
mov dword [esp + 0x864], esi
mov ebx, 3
mov dword [esp + 0x48], 0x101748b8
mov dword [esp + 0x4c], esi
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x864], 1
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x864], 2
mov dword [esp + 0xc], esi
stosb byte es:[edi], al
mov dword [esp + 0x10], 0x800
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [0x101c807c]
test eax, eax
mov byte [esp + 0x864], bl
je 0x100550c0
push eax
call fcn.1010168d
add esp, 4
mov edi, dword [ebp + 0x10]
push edi
call fcn.10101e75
mov edx, eax
mov ecx, edi
mov edi, edx
mov dword [esp + 0x1c], edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.1001b480
add esp, 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.1015a966
cmp dword [esp + 0x40], 0x100b
jne 0x1005512a
mov dword [esp + 0xc], 1
push 0
push 0
push 0
push 0
push str.SendDataEx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
jne 0x10055151
mov ebx, 1
jmp 0x100553dd
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea edx, [esp + 0x24]
push edx
push 2
push edi
mov dword [esp + 0x30], 0x1388
call esi
push 4
lea eax, [esp + 0x24]
push eax
push 6
push edi
call esi
push 4
lea ecx, [esp + 0x24]
push ecx
push 5
push edi
call esi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push 0
push 0x200
push 3
push 0
push 0
push edx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x100551c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PubwinSendDataEx_l
push 4
call fcn.1008a780
add esp, 0xc
mov ebx, 1
jmp 0x100553c3
mov ecx, dword [esp + 0xc]
neg ecx
push 0
sbb ecx, ecx
and ecx, 0x800000
or ecx, 0x8408c200
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x50]
push edx
push 0
push 0
push ecx
push 0x10167eec
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jne 0x1005520e
mov ebx, 1
jmp 0x100553b4
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x1005522f
mov ebx, 1
jmp 0x100553b4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1005528c
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x10]
push eax
push 0x1f
push edi
mov dword [esp + 0x40], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x1005528c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x1f
or eax, 0x3380
push edi
mov dword [esp + 0x1c], eax
call esi
test eax, eax
jne 0x1005528c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Internet_Option_Error___d
push 4
call fcn.1008a780
add esp, 0xc
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x100552c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10175bfc
push 4
call fcn.1008a780
add esp, 0xc
mov ebx, 1
jmp 0x100553b4
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x58]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x100553b4
mov eax, dword [esp + 0x10]
cmp eax, 0x10
jae 0x100552f0
mov byte [esp + eax + 0x50], 0
lea ecx, [esp + 0x50]
push ecx
call fcn.101019d5
mov esi, eax
push esi
push 0x10175bdc
push 4
call fcn.1008a780
add esp, 0x10
cmp esi, 0xc8
je 0x1005532e
push esi
push str.PubwinSendDataEx_statusL:_d
push 4
call fcn.1008a780
add esp, 0xc
mov ebx, 2
jmp 0x100553b4
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x800
call fcn.10001f40
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
push esi
call edi
test eax, eax
je 0x100553ae
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100553ae
jbe 0x1005538a
cmp eax, 0x800
jae 0x1005538a
mov byte [esp + eax + 0x50], 0
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x18]
call fcn.10015380
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x58]
push edx
push esi
call edi
test eax, eax
jne 0x10055374
mov edi, dword [esp + 0x28]
xor ebx, ebx
test edi, edi
je 0x100553bf
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100553d2
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100553ee
push eax
call fcn.1010168d
add esp, 4
push esi
push ebx
lea eax, [esp + 0x3c]
push str._d_s
push eax
call fcn.10001360
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx - 0xc]
inc eax
push eax
call fcn.10101e75
mov edi, eax
mov dword [0x101c807c], edi
mov eax, dword [ebx - 0xc]
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0x14
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x101c807c]
mov eax, ebx
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x10055436
mov edi, dword [0x101c807c]
lea eax, [esi - 0x10]
mov byte [esp + 0x864], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10055468
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x864], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005548e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x864], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100554b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x864], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100554d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x854]
mov eax, edi
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10