Function at 0x410080
Capabilities:
Check http status code
Connect to http server
Create http request
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 0x45d683
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x474cb0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebx + 0xb4]
mov eax, dword [eax - 0xc]
mov edi, ecx
test eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x14]
mov eax, ebx
jne 0x410134
call fcn.004146e0
mov dword [esp + 0x1d8], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
mov edx, esi
push edx
sete byte [esp + 0x1f]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.004014e0
cmp byte [esp + 0x1b], 0
je 0x410119
mov eax, dword [edi + 0x7c]
jmp 0x410171
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.004146e0
mov dword [esp + 0x1d8], 1
mov ecx, dword [edi + 0x7c]
jmp 0x4101a4
call fcn.004146e0
mov dword [esp + 0x1d8], 2
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
lea edx, [esp + 0x14]
push edx
sete byte [esp + 0x1f]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.004014e0
cmp byte [esp + 0x1b], 0
je 0x410188
mov eax, dword [ebx + 0xb4]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0xc4], eax
jmp 0x4101cf
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.004146e0
mov dword [esp + 0x1d8], 3
mov ecx, dword [ebx + 0xb4]
mov eax, dword [eax]
push 0
push 0
push eax
push 3
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0xc4], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1dc], 0xffffffff
call fcn.004014e0
mov eax, dword [ebx + 0xc4]
test eax, eax
jne 0x410228
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, str.InternetOpen
call fcn.00405480
mov dword [esp + 0x1dc], 4
mov eax, dword [ebx]
mov dword [esp + 0x1dc], 0xffffffff
mov edx, dword [eax + 8]
add eax, 8
mov ecx, ebx
call edx
mov eax, dword [ebx + 0x10]
push 0
push eax
push edi
call fcn.004111e0
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
jmp 0x410916
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebx + 0x24]
push ecx
push 2
push eax
call esi
mov eax, dword [ebx + 0xc4]
push 4
lea edx, [ebx + 0x28]
push edx
push 5
push eax
call esi
mov edx, dword [ebx + 0xc4]
push 4
lea ecx, [ebx + 0x2c]
push ecx
push 6
push edx
call esi
mov ecx, dword [ebx + 0xc4]
push 4
lea eax, [ebx + 0x30]
push eax
push 7
push ecx
call esi
mov eax, dword [ebx + 0xc4]
push 4
lea edx, [ebx + 0x34]
push edx
push 8
push eax
call esi
movzx eax, word [ebx + 0xcc]
mov ecx, dword [ebx + 0xc8]
push 0
push 0
push 3
push 0
push 0
push eax
push ecx
mov ecx, dword [ebx + 0xc4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0xc0], eax
test eax, eax
jne 0x4102eb
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, str.InternetConnect
call fcn.00405480
mov dword [esp + 0x1dc], 5
mov eax, dword [ebx]
add eax, 8
mov eax, dword [eax]
mov ecx, ebx
mov dword [esp + 0x1dc], 0xffffffff
call eax
mov ecx, dword [ebx + 0x10]
push 0
push ecx
jmp 0x410213
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.00414640
push 0
push 0x84000000
push 0
push 0
mov dword [esp + 0x1e8], 6
mov ecx, dword [ebx + 0xd0]
mov eax, dword [eax]
push 0
push ecx
mov ecx, dword [ebx + 0xc0]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
lea edx, [esp + 0x14]
mov dword [ebx + 0xbc], eax
or esi, 0xffffffff
push edx
mov dword [esp + 0x1dc], esi
call fcn.004014e0
cmp dword [ebx + 0xbc], 0
jne 0x410373
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, str.HttpOpenRequest
call fcn.00405480
mov dword [esp + 0x1dc], 7
mov eax, dword [ebx]
mov dword [esp + 0x1dc], esi
jmp 0x410203
cmp dword [ebx + 0x78], 0
jbe 0x4103bb
lea ecx, [esp + 0x14]
push ecx
push ebx
call fcn.00413bc0
mov dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx + 0xbc]
push 0xa0000000
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1dc], esi
call fcn.004014e0
mov eax, dword [ebx + 0x20]
test eax, eax
jbe 0x4103c9
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esp + 0x58]
mov ecx, ebx
call fcn.00414610
mov dword [esp + 0x1d8], 9
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, dword [ebx + 0xbc]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x41041d
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, str.HttpSendRequest
call fcn.00405480
mov byte [esp + 0x1dc], 0xa
jmp 0x4108d8
mov edx, dword [ebx + 0xbc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0x20000013
push edx
mov dword [esp + 0x7c], 4
mov dword [esp + 0x60], 0xffffffff
call esi
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x38], eax
cmp eax, 0x190
jb 0x410466
cmp eax, 0x19f
jbe 0x4108be
cmp eax, 0x1c1
je 0x4108be
cmp eax, 0x1f4
jb 0x410483
cmp eax, 0x1f9
jbe 0x4108be
mov edx, dword [ebx + 0xbc]
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xcc]
push ecx
push 1
push edx
mov dword [esp + 0x3c], 0x80
call esi
test eax, eax
je 0x4104bc
lea edi, [ebx + 0x44]
lea edx, [esp + 0xc4]
call fcn.00405530
mov edi, dword [esp + 0x1c]
mov edx, dword [ebx + 0xbc]
xor eax, eax
push eax
or ecx, 0xffffffff
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], eax
lea eax, [esp + 0x2c]
push eax
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], ecx
lea ecx, [esp + 0xcc]
push ecx
push 0x35
push edx
mov dword [esp + 0x3c], 0x80
call esi
test eax, eax
je 0x4106c2
push 6
lea eax, [esp + 0xc8]
push str.bytes
push eax
call fcn.0044b4a0
add esp, 0xc
test eax, eax
jne 0x4106c2
push 0x2f
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.0040f0e0
add esp, 0xc
mov byte [esp + 0x1d8], 0xc
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
cmp eax, 1
jb 0x4106b1
xor edi, edi
lea esi, [esp + 0x6c]
call fcn.0040de50
mov eax, dword [eax]
push 0x2d
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040f0e0
add esp, 0xc
mov byte [esp + 0x1d8], 0xd
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x40]
sar edx, 2
cmp edx, 1
jb 0x410603
lea esi, [esp + 0x34]
call fcn.0040de50
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jl 0x4105ca
call fcn.0040de50
mov eax, dword [eax]
cmp word [eax], 0x30
jb 0x4105ca
call fcn.0040de50
mov eax, dword [eax]
cmp word [eax], 0x39
ja 0x4105ca
call fcn.0040de50
mov eax, dword [eax]
push eax
call fcn.004470fd
add esp, 4
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x7c], eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
sar ecx, 2
cmp ecx, 2
jb 0x410603
mov edi, 1
lea esi, [esp + 0x34]
call fcn.0040de50
mov eax, dword [eax]
push eax
call fcn.004470fd
mov edx, edi
sub edx, dword [ebx + 0x84]
add esp, 4
add eax, edx
mov dword [ebx + 0x88], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
cmp eax, 2
jb 0x410632
mov edi, 1
lea esi, [esp + 0x6c]
call fcn.0040de50
mov eax, dword [eax]
push eax
call fcn.004470fd
add esp, 4
mov dword [ebx + 0x80], eax
xor edi, edi
lea esi, [esp + 0x34]
call fcn.0040de50
push eax
mov ecx, 0x46a0cc
call fcn.004057c0
add esp, 4
test al, al
je 0x410696
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x80]
push edi
push eax
push edx
mov dword [ebx + 0x7c], ecx
call fcn.004111e0
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
mov eax, esi
mov byte [esp + 0x1d8], 0xc
call fcn.0040de30
lea eax, [esp + 0x6c]
mov byte [esp + 0x1d8], 9
call fcn.0040de30
jmp 0x410902
lea eax, [esp + 0x34]
mov byte [esp + 0x1d8], 0xc
call fcn.0040de30
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
mov byte [esp + 0x1d8], 9
call fcn.0040de30
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x8e]
push ecx
mov dword [esp + 0x60], 0x20
mov word [esp + 0x90], ax
call fcn.00447390
mov ecx, dword [ebx + 0xbc]
add esp, 0xc
push 0
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x8c]
push eax
push 5
push ecx
mov dword [esp + 0x38], 0
call esi
cmp eax, 1
jne 0x410722
lea edx, [esp + 0x84]
push edx
call fcn.004470fd
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x38]
cmp eax, 0xce
je 0x41073d
cmp eax, 0x1a0
je 0x41073d
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x80], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 2
mov ecx, ebx
call eax
push 0x2800
lea eax, [esp + 0x38]
call fcn.00412bc0
mov byte [esp + 0x1d8], 0xe
mov dword [esp + 0x14], 0
jmp 0x410770
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0xbc]
lea ecx, [esp + 0x2c]
push ecx
push 0x2800
push edx
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
test eax, eax
jbe 0x41081b
push 1
push eax
lea esi, [esp + 0x3c]
mov edi, eax
call fcn.00412c60
test al, al
je 0x4107b6
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
add dword [ebx + 0x7c], eax
add dword [esp + 0x14], eax
mov eax, dword [edx + 0xc]
push 3
mov ecx, ebx
call eax
sub esp, 0x10
mov eax, esp
xor ecx, ecx
lea edi, [esp + 0x44]
mov dword [esp + 0x60], esp
mov dword [eax], vtable.CBuffer.0
mov byte [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
call fcn.00412d90
mov byte [esp + 0x1e8], 0xf
mov eax, dword [ebx]
mov edx, dword [eax + 4]
add eax, 4
mov ecx, ebx
mov byte [esp + 0x1e8], 0xe
call edx
cmp dword [esp + 0x30], 1
mov edi, dword [esp + 0x1c]
je 0x410770
mov eax, dword [ebx + 0x7c]
cmp eax, dword [ebx + 0x80]
jle 0x41085d
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea ebx, [edi + 0x40]
mov dword [esp + 0x34], eax
call fcn.004119c0
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov byte [eax], 1
mov eax, dword [esi + 0x10]
push 0
push eax
push edx
call fcn.004111e0
mov eax, dword [esi]
mov ecx, esi
jmp 0x4108a5
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x14], eax
jae 0x41082c
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, 0x46a0d0
call fcn.00405480
mov byte [esp + 0x1dc], 0x10
mov eax, dword [ebx]
mov edx, dword [eax + 8]
add eax, 8
mov ecx, ebx
mov byte [esp + 0x1dc], 0xe
call edx
mov eax, dword [ebx + 0x10]
push 0
push eax
push edi
call fcn.004111e0
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d8], 9
call fcn.00412c10
jmp 0x410902
push ecx
mov eax, esp
mov dword [esp + 0x54], esp
push eax
mov ecx, str.responseCode__
call fcn.00405480
mov byte [esp + 0x1dc], 0xb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
add eax, 8
mov ecx, ebx
mov byte [esp + 0x1dc], 9
call edx
mov eax, dword [ebx + 0x10]
push 0
push eax
push edi
call fcn.004111e0
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.00412c10
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004462cb
mov esp, ebp
pop ebp
ret