Function at 0x408d10
Capabilities:
Capture public ip
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435f56
mov eax, dword fs:[0]
push eax
mov eax, 0x10fc
call fcn.00419e80
mov eax, dword [0x44a068]
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 ebx, dword [ebp + 8]
push 0
push 0
push 0
push 1
push str.MyApp
mov dword [ebp - 0x1100], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1100], edi
test edi, edi
jne 0x408d76
push 0x1c
push str.Error_initializing_internet.
jmp 0x409083
push 0
push 0x80200000
push 0
push 0
push 0x4448ec
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x1104], esi
test esi, esi
jne 0x408e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0xb0
lea eax, [ebp - 0x10fc]
push 0
push eax
call fcn.0041b2d0
add esp, 4
lea ecx, [ebp - 0x10fc]
call fcn.0040be40
push esi
mov edx, str.Error_opening_URL._Error_Code:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10ec]
call fcn.00406250
mov ecx, eax
call fcn.0040c7b0
push ebx
lea ecx, [ebp - 0x10e4]
call fcn.0040dc40
lea ecx, [ebp - 0x10fc]
call fcn.004089a0
jmp 0x40909d
push 0
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1014], 0
push eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x104c], 4
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x409070
cmp dword [ebp - 0x1014], 0xc8
jne 0x409070
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
lea eax, [ebp - 0x1018]
mov dword [ebp - 4], 1
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x408f32
mov edi, dword [ebp - 0x1018]
test edi, edi
je 0x408f2c
mov edx, dword [ebp - 0x101c]
mov eax, edx
mov ecx, dword [ebp - 0x1020]
sub eax, ecx
push edi
cmp edi, eax
ja 0x408eea
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x1020], eax
lea esi, [ebp - 0x1030]
cmovae esi, dword [ebp - 0x1030]
lea eax, [ebp - 0x1010]
add esi, ecx
push eax
push esi
call fcn.0041ad50
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x1104]
jmp 0x408f0a
lea eax, [ebp - 0x1010]
mov byte [ebp - 0x1108], 0
push eax
push dword [ebp - 0x1108]
lea ecx, [ebp - 0x1030]
push edi
call fcn.00406b40
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x408e90
mov edi, dword [ebp - 0x1100]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp - 0x101c], 0x10
lea eax, [ebp - 0x1030]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x1030]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
mov dword [ebp - 0x1038], 0
xor eax, eax
mov dword [ebp - 0x1034], 7
push eax
mov word [ebp - 0x1048], ax
lea ecx, [esi - 1]
push ecx
lea ecx, [ebp - 0x1048]
call fcn.004043c0
cmp dword [ebp - 0x1034], 8
lea ecx, [ebp - 0x1048]
push esi
cmovae ecx, dword [ebp - 0x1048]
lea eax, [ebp - 0x1030]
cmp dword [ebp - 0x101c], 0x10
push ecx
cmovae eax, dword [ebp - 0x1030]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
lea eax, [ebp - 0x1048]
mov ecx, ebx
push eax
call fcn.00403590
mov edx, dword [ebp - 0x1034]
cmp edx, 8
jb 0x40901b
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409011
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090bd
push edx
push ecx
call fcn.00419245
add esp, 8
mov edx, dword [ebp - 0x101c]
xor eax, eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
cmp edx, 0x10
jb 0x40909d
mov ecx, dword [ebp - 0x1030]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409064
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090c2
push edx
push ecx
call fcn.00419245
add esp, 8
jmp 0x40909d
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push 0x25
push str.HTTP_request_failed_or_not_OK_status.
mov dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov ecx, ebx
mov word [ebx], ax
call fcn.00404540
mov eax, ebx
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.00419004
mov esp, ebp
pop ebp
ret 4
call fcn.0041f2d0
call fcn.0041f2d0
int3