Function at 0x407799
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411e03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcb0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [eax + 0x14], 0x10
jb 0x4077ce
mov eax, dword [eax]
push eax
lea esi, [esp + 0x25c]
call fcn.00408efd
cmp dword [esp + 0x264], 3
je 0x40780e
cmp dword [esp + 0x264], 4
je 0x40780e
mov dword [esp + 0x28], 0x2ee5
mov dword [esp + 0x24], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x28]
push eax
call fcn.0040c1f5
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [0x41c058], edi
jne 0x407928
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x5c]
push eax
mov esi, 0x1ff
push edi
mov dword [esp + 0x38], esi
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jne 0x40784d
mov eax, dword [esp + 0x2c]
cmp eax, esi
jae 0x40784d
cmp byte [esp + eax + 0x57], 0
je 0x40785d
push 0x15
pop ecx
mov esi, str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_5.1__Trident_4.0__.NET4.0C__.NET4.0E_
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push edi
push edi
push 1
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, edi
jne 0x407897
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x28]
jmp 0x407808
mov eax, dword [0x41c058]
cmp eax, edi
je 0x4078a7
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push dword [esp + 0x1c]
mov dword [0x41c058], esi
mov esi, 0x7530
mov dword [0x41c05c], edi
mov dword [esp + 0x28], esi
call ebx
push 4
lea eax, [esp + 0x14]
push eax
push 5
push dword [0x41c058]
mov dword [esp + 0x20], esi
call ebx
push 4
lea eax, [esp + 0x14]
push eax
push 3
push dword [0x41c058]
mov dword [esp + 0x20], 1
call ebx
push 4
lea eax, [esp + 0x14]
push eax
push 0x49
push dword [0x41c058]
mov esi, 0x800
mov dword [esp + 0x20], esi
call ebx
push 4
lea eax, [esp + 0x14]
push eax
push 0x4a
push dword [0x41c058]
mov dword [esp + 0x20], esi
call ebx
push dword [esp + 0x27c]
lea eax, [esp + 0x38]
push dword [esp + 0x278]
push dword [esp + 0x278]
push dword [esp + 0x274]
push eax
call fcn.00408e36
xor eax, eax
mov dword [esp + 0xcc4], edi
cmp dword [esp + 0x264], 4
mov ecx, dword [esp + 0x34]
sete al
push edi
mov dword [esp + 0x14], ecx
dec eax
and eax, 0xff7f1000
add eax, 0x84ccf300
push eax
push edi
push edi
push str.HTTP_1.1
push dword [esp + 0x298]
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
cmp esi, edi
jne 0x4079c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x20]
jmp 0x407808
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov byte [esp + 0xcc4], 1
cmp esi, dword [esp + 0x34]
je 0x407d06
cmp esi, dword [esp + 0x38]
je 0x407d06
push 4
pop eax
mov byte [esp + 0xcc4], 2
cmp dword [esp + 0x264], eax
jne 0x407a33
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
push 4
or eax, 0x3380
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0x1f
push esi
call ebx
push edi
push edi
push 0x4d
push esi
call ebx
push 0xa0000000
push 0xffffffffffffffff
push str.Content_type:_application_x_www_form_urlencoded
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x407a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
cmp ecx, 0x20000
jbe 0x407b5c
lea eax, [esp + 0x24]
push eax
call fcn.00408dd3
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, edi
jbe 0x407ae9
mov dword [esp + 0x1c], 0x20000
sub eax, ebx
mov dword [esp + 0x10], eax
cmp eax, 0x20000
lea eax, [esp + 0x10]
jb 0x407ab3
lea eax, [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [eax]
jb 0x407abf
mov eax, dword [esi]
jmp 0x407ac1
mov eax, esi
lea edx, [esp + 0x18]
push edx
push ecx
add eax, ebx
push eax
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x407b1e
cmp dword [esp + 0x18], edi
je 0x407b3e
add ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, eax
jb 0x407a9e
push edi
push edi
push edi
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x407b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
mov dword [esp + 0x14], 0x2f83
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
cmp dword [esi + 0x14], 0x10
jb 0x407b64
mov esi, dword [esi]
push ecx
push esi
push edi
push edi
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x407b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
push edi
push edi
push 0x13
pop eax
lea ecx, [esp + 0x2c]
call fcn.00408d7a
cmp eax, 0xc8
je 0x407bc9
mov dword [esp + 0x14], 0x2f78
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push 0x20000005
push dword [esp + 0x3c]
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x407ce8
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x407ce8
cmp edi, 0x100000
ja 0x407ce8
lea esi, [esp + 0x3c]
call fcn.00406381
xor esi, esi
mov byte [esp + 0xcc4], 3
test edi, edi
je 0x407c5c
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x407c32
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
sub ecx, esi
push ecx
add eax, esi
push eax
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407c7e
cmp dword [esp + 0x18], 0
je 0x407c5c
add esi, dword [esp + 0x18]
cmp esi, edi
jb 0x407c23
cmp esi, edi
je 0x407c9e
mov dword [esp + 0x20], 0x2f83
mov dword [esp + 0x1c], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x20]
jmp 0x407808
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x20]
jmp 0x407808
mov esi, dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
call fcn.004066d9
push 1
xor edi, edi
lea esi, [esp + 0x40]
call fcn.00406714
push dword [esp + 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
cmp dword [esp + 0x34], edi
je 0x407cd0
push dword [esp + 0x34]
call esi
mov ecx, dword [esp + 0xcbc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 0x2f79
mov dword [esp + 0x10], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x14]
jmp 0x407808
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0x2ef3
mov dword [esp + 0x2c], vtable.cuovxnupr.0
push 0x417318
lea eax, [esp + 0x30]
jmp 0x407808