Function at 0x1000d268
Capabilities:
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 0x10043e42
mov eax, dword fs:[0]
push eax
mov eax, 0x4cf4
call fcn.10030130
mov eax, dword [0x1005a2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x4ca8], eax
mov dword [ebp - 0x4cb0], ebx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
mov dword [ebp - 0x4cb4], ebx
mov dword [ebp - 0x4c9c], ebx
mov dword [ebp - 0x4c98], ebx
mov dword [ebp - 0x4ca4], ebx
test eax, eax
je 0x1000d7b1
mov dword [ebp - 0x4cac], ebx
mov eax, dword [ebp - 0x4cac]
add eax, ecx
push eax
lea ecx, [ebp - 0x4c94]
call fcn.10001716
push 0x3e8
lea eax, [ebp - 0x3f8]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1002eb70
mov eax, dword [ebp - 0x4c94]
add esp, 0xc
cmp dword [ebp - 0x4c80], 0x10
jae 0x1000d322
lea eax, [ebp - 0x4c94]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.10030000
lea eax, [ebp - 0x3f0]
push 0x10047ba8
push eax
call fcn.1002f030
add esp, 0x10
cmp eax, ebx
je 0x1000d35c
mov byte [eax], bl
lea eax, [ebp - 0x3f8]
push str._1.gif
push eax
call fcn.10030010
pop ecx
pop ecx
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4ca0], eax
cmp eax, ebx
je 0x1000d738
push 0x38
lea eax, [ebp - 0x4cf4]
push ebx
push eax
mov dword [ebp - 0x4cf8], 0x3c
call fcn.1002eb70
mov eax, 0x800
mov dword [ebp - 0x4ce4], eax
mov dword [ebp - 0x4cc8], eax
mov dword [ebp - 0x4cd8], eax
mov dword [ebp - 0x4cd0], eax
lea eax, [ebp - 0xbfc]
mov dword [ebp - 0x4ce8], eax
lea eax, [ebp - 0x1400]
mov dword [ebp - 0x4ccc], eax
lea eax, [ebp - 0x1c04]
mov dword [ebp - 0x4cdc], eax
add esp, 0xc
lea eax, [ebp - 0x4c08]
mov dword [ebp - 0x4cd4], eax
lea eax, [ebp - 0x4cf8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov ecx, dword [ebp - 0x4ce4]
mov edx, dword [ebp - 0x4ce8]
mov byte [edx + ecx], bl
mov ecx, dword [ebp - 0x4cc8]
mov edx, dword [ebp - 0x4ccc]
mov byte [edx + ecx], bl
mov ecx, dword [ebp - 0x4cd8]
mov edx, dword [ebp - 0x4cdc]
mov byte [edx + ecx], bl
mov ecx, dword [ebp - 0x4cd0]
mov edx, dword [ebp - 0x4cd4]
mov byte [edx + ecx], bl
push 0xf
pop ecx
mov dword [ebp - 0x4c2c], ecx
mov dword [ebp - 0x4c30], ebx
mov byte [ebp - 0x4c40], bl
mov dword [ebp - 0x4c48], ecx
mov dword [ebp - 0x4c4c], ebx
mov byte [ebp - 0x4c5c], bl
mov dword [ebp - 0x4c64], ecx
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
mov dword [ebp - 0x4c10], ecx
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x1000d518
mov eax, dword [ebp - 0x4cec]
mov esi, dword [ebp - 0x4ce8]
mov dword [ebp - 0x4cb8], eax
movzx eax, word [ebp - 0x4ce0]
push esi
mov dword [ebp - 0x4cbc], eax
call fcn.1002dd10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c40]
call fcn.100016a1
mov esi, dword [ebp - 0x4ccc]
push esi
call fcn.1002dd10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c5c]
call fcn.100016a1
mov esi, dword [ebp - 0x4cdc]
push esi
call fcn.1002dd10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c78]
call fcn.100016a1
mov esi, dword [ebp - 0x4cd4]
push esi
call fcn.1002dd10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c24]
call fcn.100016a1
cmp dword [ebp - 0x4c10], 0x10
mov ecx, dword [ebp - 0x4c24]
jae 0x1000d51e
lea ecx, [ebp - 0x4c24]
cmp dword [ebp - 0x4c64], 0x10
mov edx, dword [ebp - 0x4c78]
jae 0x1000d533
lea edx, [ebp - 0x4c78]
cmp dword [ebp - 0x4c2c], 0x10
mov eax, dword [ebp - 0x4c40]
jae 0x1000d548
lea eax, [ebp - 0x4c40]
push 1
push ebx
push dword [ebp - 0x4cb8]
push ecx
push edx
push dword [ebp - 0x4cbc]
push eax
push dword [ebp - 0x4ca0]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x4c9c], eax
cmp eax, ebx
je 0x1000d701
cmp dword [ebp - 0x4c48], 0x10
mov eax, dword [ebp - 0x4c5c]
mov dword [ebp - 0x4d00], 0x10047eb8
mov dword [ebp - 0x4cfc], ebx
jae 0x1000d599
lea eax, [ebp - 0x4c5c]
xor esi, esi
inc esi
push esi
push 0x84480000
lea ecx, [ebp - 0x4d00]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x10047ec0
push dword [ebp - 0x4c9c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x4c98], eax
cmp eax, ebx
je 0x1000d704
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1000d704
push 0x27ff
lea eax, [ebp - 0x4403]
push ebx
push eax
mov byte [ebp - 0x4404], bl
call fcn.1002eb70
push 0x2800
lea eax, [ebp - 0x4404]
push ebx
push eax
call fcn.1002eb70
add esp, 0x18
lea eax, [ebp - 0x4cb0]
push eax
push 0x2800
lea eax, [ebp - 0x4404]
push eax
push dword [ebp - 0x4c98]
mov dword [ebp - 0x4cb0], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push 2
lea eax, [ebp - 0x4404]
push 0x10047ebc
push eax
call fcn.1004173f
add esp, 0xc
test eax, eax
jne 0x1000d704
push ebx
push esi
lea ecx, [ebp - 0x4c24]
mov dword [ebp - 0x4cb4], esi
call fcn.100012ee
push ebx
push esi
lea ecx, [ebp - 0x4c78]
call fcn.100012ee
push ebx
push esi
lea ecx, [ebp - 0x4c5c]
call fcn.100012ee
push ebx
push esi
lea ecx, [ebp - 0x4c40]
call fcn.100012ee
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x4c94]
call fcn.100012ee
cmp dword [ebp - 0x4c98], ebx
je 0x1000d6b1
push dword [ebp - 0x4c98]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x4c9c], ebx
je 0x1000d6c5
push dword [ebp - 0x4c9c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x4ca0], ebx
je 0x1000d6d9
push dword [ebp - 0x4ca0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x4cb4], ebx
je 0x1000d7b1
mov eax, dword [ebp - 0x4ca4]
mov ecx, dword [ebp - 0x4ca8]
imul eax, eax, 0x1c
add eax, dword [edi]
push eax
call fcn.10001716
jmp 0x1000d7c1
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp - 0x4c24]
call fcn.100012ee
push ebx
push esi
lea ecx, [ebp - 0x4c78]
call fcn.100012ee
push ebx
push esi
lea ecx, [ebp - 0x4c5c]
call fcn.100012ee
push ebx
push esi
lea ecx, [ebp - 0x4c40]
call fcn.100012ee
cmp dword [ebp - 0x4c98], ebx
je 0x1000d74c
push dword [ebp - 0x4c98]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x4c9c], ebx
je 0x1000d760
push dword [ebp - 0x4c9c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x4ca0], ebx
je 0x1000d774
push dword [ebp - 0x4ca0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x4c94]
call fcn.100012ee
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
inc dword [ebp - 0x4ca4]
add dword [ebp - 0x4cac], 0x1c
cmp dword [ebp - 0x4ca4], eax
jb 0x1000d2e1
jmp 0x1000d69d
mov ecx, dword [ebp - 0x4ca8]
push 0x10047689
call fcn.10002b9d
mov eax, dword [ebp - 0x4ca8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ea4e
leave
ret