Function at 0x4312a0
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 0xffffffffffffffff
push 0x4b7197
mov eax, dword fs:[0]
push eax
mov eax, 0x1330
call fcn.004866d0
mov eax, dword [0x4e7950]
xor eax, esp
mov dword [esp + 0x1328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7950]
xor eax, esp
push eax
lea eax, [esp + 0x1344]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1354]
mov eax, dword [esp + 0x1358]
push eax
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1350], 0
call fcn.004026d0
mov byte [esp + 0x134c], 1
lea ecx, [ecx]
lea ecx, [ebp + 0x54]
mov dword [esp + 0x18], 0
call fcn.0041fa90
mov eax, dword [ebp + 0x4c]
lea ecx, [esp + 0x118]
push ecx
lea edi, [ebp + 0x14]
mov ecx, edi
mov dword [ebp + 0x7c], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
call fcn.0042d7a0
lea edx, [esp + 0x135c]
push edx
lea ecx, [ebp + 0x30]
call fcn.0042d7a0
cmp dword [ebp + 0x44], 0
jne 0x4313e5
push 0x4d0e54
call fcn.00401550
add esp, 4
push eax
push 0x4d0e54
push edi
call fcn.00431f70
mov esi, eax
cmp esi, 0xffffffff
je 0x4313df
lea ebx, [esi + 1]
mov eax, edi
lea ecx, [esp + 0x38]
call fcn.00444e10
push eax
lea ecx, [ebp + 0x30]
mov byte [esp + 0x1350], 2
call fcn.0042d7a0
mov bl, 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x134c], bl
call fcn.00402710
mov eax, esi
lea ecx, [esp + 0x38]
call fcn.00444de0
push eax
lea ecx, [ebp + 0x14]
mov byte [esp + 0x1350], 3
call fcn.0042d7a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x134c], bl
call fcn.00402710
cmp dword [ebp + 0x44], 0
je 0x4313ed
mov dword [esp + 0x1c], 1
mov eax, dword [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43140a
mov dword [esp + 0x18], 1
jmp 0x43197b
lea ecx, [esp + 0x70]
call fcn.0042c6f0
lea ecx, [esp + 0x8c]
call fcn.0042c6f0
lea ecx, [esp + 0xa8]
call fcn.0042c6f0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
lea ebx, [esp + 0xb0]
lea edi, [esp + 0x94]
lea esi, [esp + 0x78]
lea ecx, [ebp + 0x14]
mov byte [esp + 0x1354], 6
call fcn.00430470
lea ecx, [esp + 0x54]
call fcn.00429180
mov byte [esp + 0x134c], 7
mov eax, dword [ebp + 8]
test eax, eax
jne 0x431485
lea ecx, [ebp + 0x30]
lea esi, [esp + 0x38]
call fcn.0042f740
mov byte [esp + 0x134c], 8
jmp 0x43149e
cmp eax, 1
jne 0x4314b5
lea edx, [ebp + 0x30]
lea ecx, [esp + 0x38]
call fcn.0042f170
mov byte [esp + 0x134c], 9
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00402f00
lea ecx, [esp + 0x38]
call fcn.00402610
push 0
push 0
push 0
push 0
push 0x4cff50
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x431509
lea ecx, [esp + 0x54]
call fcn.00402610
lea ecx, [esp + 0xa8]
call fcn.00402710
lea ecx, [esp + 0x8c]
call fcn.00402710
lea ecx, [esp + 0x70]
mov byte [esp + 0x134c], 1
call fcn.00402710
jmp 0x431970
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call ebx
test eax, eax
jne 0x431525
mov dword [esp + 0x18], 1
jmp 0x4314d2
mov ecx, dword [esp + 0x34]
push 0
push 0
push 3
push 0
push 0
push ecx
lea ecx, [esp + 0x88]
call fcn.00402730
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
jne 0x431589
lea ecx, [esp + 0x54]
call fcn.00402610
lea ecx, [esp + 0xa8]
call fcn.00402710
lea ecx, [esp + 0x8c]
call fcn.00402710
lea ecx, [esp + 0x70]
mov byte [esp + 0x134c], 1
call fcn.00402710
jmp 0x431965
mov edx, dword [ebp + 0xc]
push 0
push edx
call ebx
test eax, eax
jne 0x43159f
mov dword [esp + 0x18], 1
jmp 0x431552
lea ecx, [esp + 0xe0]
call fcn.0042c6f0
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x134c], 0xa
lea ecx, [esp + 0xe0]
jne 0x4315c8
push 0x4d10a4
jmp 0x4315cd
push str.POST
call fcn.004031c0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x104]
call fcn.00432180
add esp, 8
mov byte [esp + 0x134c], 0xb
cmp dword [esp + 0x2c], 4
mov eax, 0x80400002
jne 0x43160a
mov eax, 0x80c00002
push 0
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x110]
call fcn.00402730
push eax
lea ecx, [esp + 0xf8]
call fcn.00402730
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x431908
mov edx, dword [ebp + 0xc]
push 0
push edx
call ebx
test eax, eax
jne 0x431657
mov dword [esp + 0x18], 1
jmp 0x431908
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [esp + 0xc8]
call fcn.004026d0
push 0x20000000
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1350], 0xc
call fcn.00402750
push eax
lea ecx, [esp + 0xcc]
call fcn.00402730
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push eax
push edi
call esi
test eax, eax
je 0x4318fc
cmp dword [ebp + 0xcc], 0
je 0x4316f3
lea ecx, [ebp + 0xb8]
call fcn.00402730
push eax
push str.Referer:__s_r_n
lea ecx, [esp + 0xcc]
call fcn.00444e50
add esp, 8
push 0x20000000
lea ecx, [esp + 0xc8]
call fcn.00402750
push eax
lea ecx, [esp + 0xcc]
call fcn.00402730
push eax
push edi
call esi
test eax, eax
je 0x4318fc
lea ecx, [esp + 0x54]
call fcn.00402750
push eax
lea ecx, [esp + 0x58]
call fcn.004086e0
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4318fc
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
push 5
mov ebx, 0x104
push edi
mov word [esp + 0x148], ax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x43177e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
xor eax, eax
push str.Content_length:__s__n
mov word [esp + ecx*2 + 0x13c], ax
call fcn.004826c7
lea eax, [esp + 0x13c]
push eax
call fcn.004820eb
add esp, 0xc
mov dword [esp + 0x30], eax
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
push 0x13
push edi
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x4317dc
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
xor eax, eax
push str.Status_code:__s__n
mov word [esp + ecx*2 + 0x13c], ax
call fcn.004826c7
lea eax, [esp + 0x13c]
push eax
call fcn.004820eb
add esp, 0xc
mov dword [ebp + 0x7c], eax
cmp eax, 0xc8
jne 0x4317dc
mov dword [esp + 0x20], 1
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
push 0x14
push edi
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x43181b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
xor eax, eax
push str.Status_text:__s__n
mov word [esp + ecx*2 + 0x13c], ax
call fcn.004826c7
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x344]
push ecx
xor esi, esi
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4318e3
cmp dword [esp + 0x14], 0
jbe 0x4318e3
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x431869
mov eax, esi
imul eax, eax, 0x64
cdq
idiv ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x431885
fldz
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
sub esp, 8
fstp qword [esp]
push eax
push ebp
call edx
mov eax, dword [esp + 0x14]
lea ecx, [esi + eax]
push ecx
lea ebx, [ebp + 0x54]
mov ecx, ebx
call fcn.0041f120
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x340]
push eax
mov ecx, ebx
call fcn.0041e9d0
add eax, esi
push eax
call fcn.0048db60
add esi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x344]
push edx
push edi
mov dword [esp + 0x24], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x43184a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4318fc
fldz
mov eax, dword [ecx]
mov edx, dword [eax + 4]
sub esp, 8
fstp qword [esp]
push 0x64
push ebp
call edx
lea ecx, [esp + 0xc4]
call fcn.00402710
lea ecx, [esp + 0xfc]
call fcn.00402710
lea ecx, [esp + 0xe0]
call fcn.00402710
lea ecx, [esp + 0x54]
call fcn.00402610
lea ecx, [esp + 0xa8]
call fcn.00402710
lea ecx, [esp + 0x8c]
call fcn.00402710
lea ecx, [esp + 0x70]
mov byte [esp + 0x134c], 1
call fcn.00402710
test edi, edi
je 0x43195d
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
test edi, edi
je 0x431970
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x43197b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4319e2
cmp dword [esp + 0x18], 0
jne 0x4319e2
cmp dword [esp + 0x20], 0
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp + 0xc]
push eax
sete al
movzx eax, al
push eax
push ebp
lea eax, [esp + 0x44]
push eax
call edx
push eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x1350], 0xd
call fcn.0042d7a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x134c], 1
call fcn.00402710
cmp dword [esp + 0x12c], 0
je 0x4319e2
lea eax, [ebp + 0x30]
call fcn.0043b4d0
jmp 0x431310
lea ecx, [esp + 0x118]
call fcn.00402710
lea ecx, [esp + 0x135c]
call fcn.00402710
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1328]
xor ecx, esp
call fcn.00480723
add esp, 0x133c
ret 0x24