Function at 0x40684c
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410382
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xab0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [eax + 0x14], 0x10
jb 0x406881
mov eax, dword [eax]
push eax
lea esi, [esp + 0x5c]
call fcn.00407abe
cmp dword [esp + 0x64], 3
je 0x4068b8
cmp dword [esp + 0x64], 4
je 0x4068b8
mov dword [esp + 0x20], 0x2ee5
mov dword [esp + 0x1c], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x20]
push eax
call fcn.0040ab7e
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [0x419a80], edi
jne 0x406988
push edi
push edi
push edi
push 1
push edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, edi
jne 0x4068f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x20]
jmp 0x4068b2
mov eax, dword [0x419a80]
cmp eax, edi
je 0x406909
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 4
lea eax, [esp + 0x18]
push eax
mov dword [0x419a84], edi
push 6
mov edi, 0x7530
push ebx
mov dword [0x419a80], ebx
mov dword [esp + 0x24], edi
call esi
push 4
pop ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 5
push dword [0x419a80]
mov dword [esp + 0x24], edi
call esi
push ebx
lea eax, [esp + 0x18]
push eax
push 3
push dword [0x419a80]
mov dword [esp + 0x24], 1
call esi
push ebx
lea eax, [esp + 0x18]
push eax
push 0x49
push dword [0x419a80]
mov edi, 0x800
mov dword [esp + 0x24], edi
call esi
push ebx
lea eax, [esp + 0x18]
push eax
push 0x4a
push dword [0x419a80]
mov dword [esp + 0x24], edi
call esi
xor edi, edi
push dword [esp + 0x7c]
lea eax, [esp + 0x38]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x74]
push eax
call fcn.004079f7
xor eax, eax
mov dword [esp + 0xac4], edi
cmp dword [esp + 0x64], 4
mov ecx, dword [esp + 0x34]
sete al
push edi
mov dword [esp + 0x18], ecx
dec eax
and eax, 0xff7f1000
add eax, 0x84ccf300
push eax
push edi
push edi
push str.HTTP_1.1
push dword [esp + 0x98]
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp ebx, edi
jne 0x406a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x30]
jmp 0x4068b2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov byte [esp + 0xac4], 1
cmp ebx, dword [esp + 0x34]
je 0x406d11
cmp ebx, dword [esp + 0x38]
je 0x406d11
push 4
pop eax
mov byte [esp + 0xac4], 2
cmp dword [esp + 0x64], eax
jne 0x406a7d
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
neg eax
sbb eax, eax
and eax, dword [esp + 0x24]
push 4
or eax, 0x3380
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x1f
push ebx
call esi
push edi
push edi
push 0x4d
push ebx
call esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
cmp ecx, 0x20000
jbe 0x406b73
lea eax, [esp + 0x1c]
push eax
call fcn.00407994
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], edi
cmp eax, edi
jbe 0x406b03
mov dword [esp + 0x2c], 0x20000
sub eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
cmp eax, 0x20000
lea eax, [esp + 0x24]
jb 0x406aca
lea eax, [esp + 0x2c]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [eax]
jb 0x406ad6
mov eax, dword [esi]
jmp 0x406ad8
mov eax, esi
add eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x406b35
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x406b55
add dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
cmp dword [esp + 0x14], eax
jb 0x406ab3
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x406baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x28]
jmp 0x4068b2
mov dword [esp + 0x10], 0x2f83
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
cmp dword [esi + 0x14], 0x10
jb 0x406b7b
mov esi, dword [esi]
push ecx
push esi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x406baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
push edi
push edi
push 0x13
pop eax
lea ecx, [esp + 0x24]
call fcn.0040793b
cmp eax, 0xc8
je 0x406bdd
mov dword [esp + 0x10], 0x2f78
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
push edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
push 0x20000005
push ebx
mov dword [esp + 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x406cf3
mov edi, dword [esp + 0x2c]
cmp edi, 0xffffffff
je 0x406cf3
cmp edi, 0x100000
ja 0x406cf3
lea esi, [esp + 0x3c]
call fcn.004053f6
xor esi, esi
mov byte [esp + 0xac4], 3
test edi, edi
je 0x406c6a
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x406c43
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
sub ecx, esi
push ecx
add eax, esi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x406c8c
cmp dword [esp + 0x14], 0
je 0x406c6a
add esi, dword [esp + 0x14]
cmp esi, edi
jb 0x406c34
cmp esi, edi
je 0x406cac
mov dword [esp + 0x10], 0x2f83
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
mov esi, dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
call fcn.0040539e
push 1
xor edi, edi
lea esi, [esp + 0x40]
call fcn.004059f4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
cmp dword [esp + 0x34], edi
je 0x406cdb
push dword [esp + 0x34]
call esi
mov ecx, dword [esp + 0xabc]
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 + 0x10], 0x2f79
mov dword [esp + 0xc], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x10]
jmp 0x4068b2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x2ef3
mov dword [esp + 0x14], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [esp + 0x18]
jmp 0x4068b2