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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6277b1
mov eax, dword fs:[0]
push eax
mov eax, 0x1074
call fcn.00554810
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1068], ecx
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1078], eax
mov eax, 0x2710
mov dword [ebp - 0x105c], eax
mov dword [ebp - 0x1070], eax
xor eax, eax
mov ebx, edx
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1080], 0x665e18
mov dword [ebp - 0x107c], eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x1074], 4
mov dword [ebp - 0x104c], 0x50
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4107e1
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1048], eax
mov dword [ebp - 4], 0
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410814
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1050], eax
mov byte [ebp - 4], 1
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410844
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1054], esi
lea ecx, [ebp - 0x104c]
push ecx
lea edx, [ebp - 0x1048]
push edx
push ebx
lea ecx, [ebp - 0x1050]
mov byte [ebp - 4], 2
call fcn.004103c0
add esp, 0xc
test eax, eax
jne 0x4108f1
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41089b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1050]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1048]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x410bbe
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x106c], edi
test edi, edi
je 0x410b49
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp - 0x1070]
push ecx
push 2
push edi
call esi
test eax, eax
je 0x410b3c
push 4
lea edx, [ebp - 0x105c]
push edx
push 5
push edi
call esi
test eax, eax
je 0x410b3c
push 4
lea eax, [ebp - 0x105c]
push eax
push 6
push edi
call esi
test eax, eax
je 0x410b3c
mov ecx, dword [ebp - 0x104c]
mov edx, dword [ebp - 0x1048]
push 0
push 0x4000000
push 3
push 0
push 0
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x104c], ebx
test ebx, ebx
je 0x410b3c
mov ecx, dword [ebp - 0x1050]
push 0
push 0x4000040
lea eax, [ebp - 0x1080]
push eax
push 0x663ea8
push str.HTTP_1.0
push ecx
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0x1048]
push edx
mov esi, eax
lea eax, [ebp - 0x1054]
push str.Host:__s_r_n
push eax
call fcn.00405900
mov ecx, dword [ebp - 0x1054]
mov eax, dword [ecx - 0xc]
add esp, 0xc
push 0x20000000
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test esi, esi
je 0x410b35
mov ebx, dword [ebp - 0x1078]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410a00
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x44]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410a11
push edx
push ebx
sub eax, edi
push eax
lea ecx, [ebp - 0x44]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x410a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410b22
push 0
lea edx, [ebp - 0x1074]
push edx
lea eax, [ebp - 0x1064]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x1064], 0xc8
jne 0x410b22
mov ebx, dword [ebp - 0x1068]
push 0x663ea8
mov ecx, ebx
call fcn.00401b40
push 0xfff
lea ecx, [ebp - 0x1043]
push 0
push ecx
mov byte [ebp - 0x1044], 0
call fcn.00551e50
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea edx, [ebp - 0x1060]
push edx
push 0xfff
lea eax, [ebp - 0x1044]
push eax
push esi
call edi
test eax, eax
je 0x410b22
mov eax, dword [ebp - 0x1060]
test eax, eax
je 0x410b0b
lea ecx, [ebp - 0x1044]
push ecx
mov ecx, ebx
mov byte [ebp + eax - 0x1044], 0
call fcn.00405960
push 0xfff
lea edx, [ebp - 0x1043]
push 0
push edx
mov byte [ebp - 0x1044], 0
call fcn.00551e50
add esp, 0xc
lea eax, [ebp - 0x1060]
push eax
push 0xfff
lea ecx, [ebp - 0x1044]
push ecx
push esi
call edi
test eax, eax
jne 0x410ab2
jmp 0x410b22
push 0
push 8
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov dword [ebp - 0x1058], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [ebp - 0x104c]
mov edi, dword [ebp - 0x106c]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x1054]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410b69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1050]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1048]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1058]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret