Function at 0x1005e09d
Capabilities:
Check http status code
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 0x100e65af
mov eax, dword fs:[0]
push eax
mov eax, 0x4270
call fcn.100c7ed0
mov eax, dword [0x1012c510]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x4230], ecx
cmp esi, ebx
jne 0x1005e0e7
xor eax, eax
jmp 0x1005e3a8
cmp word [esi], bx
je 0x1005e0e0
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x421c], eax
cmp eax, ebx
je 0x1005e0e0
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x427c]
push ebx
push eax
call fcn.100c1480
lea eax, [ebp - 0x214]
mov dword [ebp - 0x426c], eax
lea eax, [ebp - 0x41fc]
mov dword [ebp - 0x4250], eax
lea eax, [ebp - 0x31fc]
add esp, 0xc
mov dword [ebp - 0x4248], eax
lea eax, [ebp - 0x427c]
push eax
push 0x90000000
push esi
mov dword [ebp - 0x427c], edi
mov dword [ebp - 0x4268], 0x100
mov dword [ebp - 0x424c], 0x800
mov dword [ebp - 0x4244], 0x824
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1005e3a5
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x421c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x4224], edi
cmp edi, ebx
jne 0x1005e1b8
push dword [ebp - 0x421c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1005e0e0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp + 0x10]
push eax
push 2
push edi
call esi
lea eax, [ebp - 0x41fc]
push eax
lea eax, [ebp - 0x4218]
call fcn.10008945
lea eax, [ebp - 0x31fc]
push eax
lea eax, [ebp - 0x4218]
push eax
mov dword [ebp - 4], ebx
call fcn.10014c04
cmp dword [ebp - 0x4200], 8
mov eax, dword [ebp - 0x4214]
jae 0x1005e206
lea eax, [ebp - 0x4214]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x4228], edi
cmp edi, ebx
je 0x1005e381
push 4
lea eax, [ebp + 0x10]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp + 0x10]
push eax
push 6
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
cmp dword [ebp + 0xc], ebx
je 0x1005e3ee
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1005e37a
push ebx
lea eax, [ebp - 0x4238]
push eax
lea eax, [ebp - 0x422c]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x422c], ebx
mov dword [ebp - 0x4238], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1005e3c2
cmp dword [ebp - 0x422c], 0xc8
je 0x1005e2a9
cmp dword [ebp - 0x422c], 0xc9
jne 0x1005e3c2
push 0x1f9f
lea eax, [ebp - 0x21b3]
push ebx
push eax
mov dword [ebp - 0x4220], ebx
mov byte [ebp - 0x21b4], bl
call fcn.100c1480
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, 0x1fa0
jmp 0x1005e355
cmp dword [ebp - 0x4220], ebx
je 0x1005e374
lea eax, [ebp - 0x21b4]
push eax
lea eax, [ebp - 0x4240]
push eax
call fcn.1000e9cd
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
mov dword [ebp - 0x4234], eax
call fcn.100bfd09
pop ecx
mov ecx, dword [ebp - 0x4230]
push eax
mov eax, dword [ebp - 0x4234]
call fcn.1000bd91
mov byte [ebp - 4], bl
push dword [ebp - 0x4240]
call fcn.100a212e
push dword [ebp - 0x423c]
call fcn.100a212e
push 0x1f9f
lea eax, [ebp - 0x21b3]
push ebx
push eax
mov dword [ebp - 0x4220], ebx
mov byte [ebp - 0x21b4], bl
call fcn.100c1480
add esp, 0x14
lea eax, [ebp - 0x4220]
push eax
push edi
lea eax, [ebp - 0x21b4]
push eax
push dword [ebp - 0x4228]
call esi
test eax, eax
jne 0x1005e2d7
mov edi, dword [ebp - 0x4228]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x4224]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x421c]
call esi
push ebx
push 1
lea esi, [ebp - 0x4218]
call fcn.100016e6
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100bfae1
leave
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x4224]
call esi
push dword [ebp - 0x421c]
call esi
push ebx
push 1
lea esi, [ebp - 0x4218]
call fcn.100016e6
jmp 0x1005e0e0
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x1005e3c2
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x1005e37a
jmp 0x1005e3c2