Function at 0x40ad70
Capabilities:
Connect to http server
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 0xffffffffffffffff
push 0x52d97e
mov eax, dword fs:[0]
push eax
mov eax, 0x20100
call fcn.0050cf70
mov eax, dword [0x58b998]
xor eax, esp
mov dword [esp + 0x200fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b998]
xor eax, esp
push eax
lea eax, [esp + 0x20114]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20124]
mov edx, dword [esp + 0x2012c]
push 0x10001
mov dword [esp + 0x28], eax
xor ebx, ebx
mov edi, ecx
mov ecx, dword [esp + 0x2012c]
lea eax, [esp + 0x110]
push ebx
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.0050cfa0
mov esi, 8
add esp, 0xc
mov dword [esp + 0x34], ebx
cmp dword [edi + 0x3c], esi
jb 0x40adfd
mov eax, dword [edi + 0x28]
jmp 0x40ae00
lea eax, [edi + 0x28]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, ebx
jne 0x40ae25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x64], eax
xor al, al
jmp 0x40b483
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40ae3c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ae6b
cmp dword [edi + 0x20], esi
jb 0x40ae46
mov eax, dword [edi + 0xc]
jmp 0x40ae49
lea eax, [edi + 0xc]
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebx
jne 0x40ae79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x64], eax
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40b483
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40aea3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40aea3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
xor al, al
jmp 0x40b483
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ebx
push 0x4400000
push ebx
push ebx
push ebx
push ecx
push edx
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp ebp, ebx
jne 0x40aee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x64], eax
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
xor al, al
jmp 0x40b483
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40af18
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40af18
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
xor al, al
jmp 0x40b483
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov edx, dword [esp + 0x20130]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40b072
cmp dword [edi + 0xd4], ebx
je 0x40b11c
push 0x53ee60
lea ecx, [esp + 0xf4]
call fcn.00401580
push 0x53ee5c
lea ecx, [edi + 0xc0]
push ecx
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0x20128], ebx
call fcn.0040aca0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x20128], 1
call fcn.004017c0
cmp dword [esp + 0xac], 8
mov byte [esp + 0x2011c], bl
jb 0x40afb7
mov eax, dword [esp + 0x98]
push eax
call fcn.0040dd3a
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0xa4]
push ecx
lea ecx, [esp + 0xfc]
call fcn.004017c0
cmp dword [esp + 0x108], 8
mov esi, 2
mov dword [esp + 0x78], esi
jb 0x40afed
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x7c], edx
jmp 0x40aff8
lea eax, [esp + 0xf4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
push 0x14
lea edx, [esp + 0x68]
push edx
push 0x4b
lea ecx, [esp + 0x84]
push eax
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], esi
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x40b110
cmp dword [esp + 0x108], 8
mov dword [esp + 0x2011c], 0xffffffff
jb 0x40b0af
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0040dd3a
add esp, 4
jmp 0x40b0af
mov edx, dword [edi + 4]
push ebx
push 7
push ebx
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetErrorDlg]
inc dword [esp + 0x14]
mov esi, eax
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40b0a2
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b143
cmp esi, 0x2f00
mov esi, 2
jne 0x40b0ba
cmp dword [esp + 0x14], 3
jb 0x40af20
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x40]
push eax
push 0x20000005
push ebp
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40b161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
mov dword [edi + 0x64], eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
xor al, al
jmp 0x40b483
lea ecx, [esp + 0xf0]
call fcn.004015c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
mov dword [edi + 0x64], eax
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
xor al, al
jmp 0x40b483
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
xor al, al
jmp 0x40b483
lea ecx, [esp + 0x3c]
call fcn.0041ece3
mov dword [esp + 0x2011c], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp byte [edi + 0x60], bl
je 0x40b224
push 0x568a54
lea ecx, [esp + 0x7c]
call fcn.00401580
push eax
lea eax, [edi + 0x68]
push eax
lea ecx, [esp + 0xf8]
push ecx
mov byte [esp + 0x20128], 3
call fcn.00401c40
lea edx, [edi + 0x84]
push edx
push eax
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x20134], 4
call fcn.00401c40
add esp, 0x18
cmp dword [eax + 0x18], 8
mov byte [esp + 0x2011c], 5
jb 0x40b1dd
mov eax, dword [eax + 4]
jmp 0x40b1e0
add eax, 4
push ebx
push 0x1011
push eax
lea ecx, [esp + 0x48]
call fcn.0041f1a9
lea ecx, [esp + 0x94]
call fcn.004015c0
lea ecx, [esp + 0xf0]
call fcn.004015c0
lea ecx, [esp + 0x78]
mov byte [esp + 0x2011c], 2
call fcn.004015c0
jmp 0x40b224
mov ebp, dword [esp + 0x20]
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40b23f
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b4ad
push 0x20002
lea ecx, [esp + 0x110]
push ebx
push ecx
mov dword [esp + 0x20], ebx
call fcn.0050cfa0
push ebx
call fcn.0050cf1d
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov esi, edx
lea edx, [esp + 0x14]
push edx
mov ebp, eax
push 0x20000
lea eax, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], ebx
call fcn.0050cf1d
add esp, 4
sub eax, ebp
sbb edx, esi
cmp edx, ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
jg 0x40b2b6
jl 0x40b2b0
cmp eax, 1
jae 0x40b2b6
lea eax, [esp + 0x5c]
jmp 0x40b2ba
lea eax, [esp + 0x54]
mov ebp, dword [eax]
add dword [esp + 0x2c], ebp
mov eax, dword [eax + 4]
mov dword [esp + 0xb4], eax
adc dword [esp + 0x30], eax
cmp dword [esp + 0x24], ebx
je 0x40b4ea
mov edx, dword [esp + 0x14]
add dword [esp + 0x34], edx
cmp dword [edi + 0x5c], ebx
je 0x40b402
push 0x58
call fcn.0040dd00
add esp, 4
cmp eax, ebx
je 0x40b302
mov ecx, eax
call fcn.0040ab10
mov esi, eax
jmp 0x40b304
xor esi, esi
mov dword [esp + 0x28], esi
mov eax, dword [edi + 4]
mov dword [esi], eax
mov eax, dword [esp + 0x34]
cdq
mov dword [esi + 8], 1
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0xb4]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ebx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x30], ecx
push 0x568a54
lea ecx, [esp + 0xd8]
mov byte [esp + 0x20120], 6
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], edx
call fcn.00401580
push eax
lea eax, [edi + 0x68]
push eax
lea ecx, [esp + 0xc0]
push ecx
mov byte [esp + 0x20128], 7
call fcn.00401c40
lea edx, [edi + 0x84]
push edx
push eax
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x20134], 8
call fcn.00401c40
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x20128], 9
call fcn.00401620
lea ecx, [esp + 0x94]
call fcn.004015c0
lea ecx, [esp + 0xb8]
call fcn.004015c0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x2011c], 6
call fcn.004015c0
mov ecx, dword [edi + 0x5c]
push esi
mov dword [esp + 0x2c], ebx
call ecx
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x2011c], 2
call fcn.00407d30
cmp byte [edi + 0x60], bl
je 0x40b41f
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x44]
call fcn.0041ea19
jmp 0x40b42f
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [edi + 0x40]
call fcn.0040ac70
cmp dword [esp + 0x14], ebx
jne 0x40b220
cmp dword [esp + 0x24], 1
jne 0x40b220
cmp byte [edi + 0x60], bl
je 0x40b452
lea ecx, [esp + 0x3c]
call fcn.0041ec7d
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2011c], 0xffffffff
call fcn.0041ee23
mov al, 1
mov ecx, dword [esp + 0x20114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x200fc]
xor ecx, esp
call fcn.0050bda6
add esp, 0x2010c
ret 0x10
push ebp
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
cmp byte [edi + 0x60], bl
je 0x40b4d2
lea ecx, [esp + 0x3c]
call fcn.0041ec7d
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2011c], 0xffffffff
call fcn.0041ee23
xor al, al
jmp 0x40b483
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x64], eax
push ecx
jmp 0x40b4ae