Function at 0x10009b40
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bada3
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x100e70dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x598], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x558], 0
push 0
push 1
lea ecx, [ebp + 8]
call fcn.10004010
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x10009bd8
mov byte [ebp - 0x559], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10004380
mov al, byte [ebp - 0x559]
jmp 0x10009f80
xor eax, eax
mov word [ebp - 0x110], ax
push 0xfe
push 0
lea ecx, [ebp - 0x10e]
push ecx
call fcn.100953e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x510], dx
push 0x3fe
push 0
lea eax, [ebp - 0x50e]
push eax
call fcn.100953e0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x554]
push ecx
call fcn.100953e0
add esp, 0xc
mov dword [ebp - 0x554], 0x3c
mov dword [ebp - 0x540], 0x80
mov dword [ebp - 0x524], 0x200
lea edx, [ebp - 0x110]
mov dword [ebp - 0x544], edx
lea eax, [ebp - 0x510]
mov dword [ebp - 0x528], eax
lea ecx, [ebp - 0x554]
push ecx
push bind
push 0
lea ecx, [ebp + 8]
call fcn.10004010
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10009c85
jmp 0x10009ed3
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x568], eax
cmp dword [ebp - 0x568], 0
jne 0x10009ca9
jmp 0x10009ed3
push 0
push 0x8000000
push 3
push 0
push 0
push 0x50
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x568]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x56c], eax
cmp dword [ebp - 0x56c], 0
jne 0x10009ce0
jmp 0x10009ed3
push 1
push 0x4000200
push 0
push 0
push str.HTTP_1.0
lea ecx, [ebp - 0x510]
push ecx
push 0x100d7b84
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x564], eax
cmp dword [ebp - 0x564], 0
jne 0x10009d1d
jmp 0x10009ed3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10009d3b
jmp 0x10009ed3
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x560], 0
push 0
lea ecx, [ebp - 0x514]
push ecx
mov edx, dword [ebp - 0x560]
push edx
push 5
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x10009db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x57c], eax
cmp dword [ebp - 0x57c], 0x7a
jne 0x10009dad
mov ecx, dword [ebp - 0x514]
add ecx, 1
push ecx
call fcn.1007c063
add esp, 4
mov dword [ebp - 0x580], eax
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x560], edx
jmp 0x10009db2
jmp 0x10009ed3
jmp 0x10009d4f
mov eax, dword [ebp - 0x560]
add eax, dword [ebp - 0x514]
mov cl, byte [0x100d7b8c]
mov byte [eax], cl
mov edx, dword [ebp - 0x560]
push edx
call fcn.10098f92
add esp, 4
mov dword [ebp - 0x574], eax
mov eax, dword [ebp - 0x560]
mov dword [ebp - 0x570], eax
mov ecx, dword [ebp - 0x570]
push ecx
call fcn.1007c05e
add esp, 4
cmp dword [ebp - 0x570], 0
jne 0x10009e0d
mov dword [ebp - 0x584], 0
jmp 0x10009e23
mov dword [ebp - 0x560], 0x8123
mov edx, dword [ebp - 0x560]
mov dword [ebp - 0x584], edx
mov dword [ebp - 0x518], 0
mov eax, dword [ebp - 0x574]
add eax, 1
push eax
call fcn.1007c063
add esp, 4
mov dword [ebp - 0x588], eax
mov ecx, dword [ebp - 0x588]
mov dword [ebp - 0x558], ecx
cmp dword [ebp - 0x558], 0
je 0x10009e84
lea edx, [ebp - 0x518]
push edx
mov eax, dword [ebp - 0x574]
push eax
mov ecx, dword [ebp - 0x558]
push ecx
mov edx, dword [ebp - 0x564]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10009e82
jmp 0x10009ed3
jmp 0x10009e86
jmp 0x10009ed3
mov eax, dword [ebp - 0x518]
push eax
mov ecx, dword [ebp - 0x558]
push ecx
lea ecx, [ebp - 0x5b0]
call fcn.1000ad80
mov dword [ebp - 0x58c], eax
mov edx, dword [ebp - 0x58c]
mov dword [ebp - 0x590], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x590]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.10001ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5b0]
call fcn.10003b80
cmp dword [ebp - 0x568], 0
je 0x10009ee9
mov ecx, dword [ebp - 0x568]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x56c], 0
je 0x10009eff
mov edx, dword [ebp - 0x56c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x564], 0
je 0x10009f15
mov eax, dword [ebp - 0x564]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x558], 0
je 0x10009f64
mov ecx, dword [ebp - 0x558]
mov dword [ebp - 0x578], ecx
mov edx, dword [ebp - 0x578]
push edx
call fcn.1007c05e
add esp, 4
cmp dword [ebp - 0x578], 0
jne 0x10009f4e
mov dword [ebp - 0x594], 0
jmp 0x10009f64
mov dword [ebp - 0x558], 0x8123
mov eax, dword [ebp - 0x558]
mov dword [ebp - 0x594], eax
mov byte [ebp - 0x55a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10004380
mov al, byte [ebp - 0x55a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bf25
mov esp, ebp
pop ebp
ret 0x1c