Function at 0x418150
Capabilities:
Connect to http server
Create http request
Create thread
Read data from internet
Receive data
Terminate thread

Disassembly:
sub esp, 0x140
mov eax, dword [0x4bc4a0]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
mov ebx, dword [esp + 0x158]
push ebp
mov ebp, dword [esp + 0x14c]
push esi
mov esi, dword [esp + 0x158]
push edi
mov edi, dword [esp + 0x158]
mov eax, 0x2328
push 0x104
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x49]
push 0
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x1388
mov byte [esp + 0x50], 0
call fcn.00466720
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4181db
push esi
call fcn.004177e0
add esp, 4
test eax, eax
je 0x418454
push 0
push 0x49c432
mov ecx, edi
call fcn.00401c30
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1__Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1____.NET_CLR_1.1.4322__.NET_CLR_2.0.50727__InfoPath.2_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x418420
mov ecx, dword [esp + 0x168]
cmp dword [ecx], 0
jne 0x418420
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea edx, [esp + 0x2c]
push edx
push 2
push eax
call edi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x28]
push eax
push 5
push ecx
call edi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x30]
push edx
push 6
push eax
call edi
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x10]
push 1
push 0
push 3
push 0
push 0
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x418420
mov edi, dword [esp + 0x168]
cmp dword [edi], 0
jne 0x418420
push 0
push accept
push 0
push 0
push str.HTTP_1.1
push ebx
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x418433
cmp dword [edi], 0
jne 0x418424
mov eax, ebp
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
lea edx, [eax + 1]
jmp 0x4182d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4182d0
sub eax, edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0x417b60
push 0
push 0
call fcn.00466665
push 0xf3
push str...p2psrc_src_net.cpp
lea edx, [esp + 0x50]
push edx
mov esi, eax
push esi
push str.__thrd:_0x_x:0x_x__file:__s:_u
call fcn.00416770
add esp, 0x2c
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418368
push str.HttpSendRequest_timeout
call fcn.004168b0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push pe_nt_image_headers32
push str...p2psrc_src_net.cpp
push esi
push str.__handle_cls:_0x_x__file:__s:_u
call fcn.00416770
add esp, 0x10
test esi, esi
je 0x418424
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418424
push 0xfb
push str...p2psrc_src_net.cpp
push esi
push str.__handle_cls:_0x_x__file:__s:_u
call fcn.00416770
add esp, 0x10
test esi, esi
je 0x41838b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x40], 0
je 0x418424
cmp dword [edi], 0
jne 0x418424
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [edi], 0
jne 0x418424
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esp + 0x4c]
push ecx
push ebx
call esi
test eax, eax
je 0x418424
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418424
cmp dword [esp + 0x20], 0
mov byte [esp + eax + 0x44], 0
je 0x4183ff
cmp byte [esp + 0x44], 0xef
jne 0x4183f7
cmp byte [esp + 0x45], 0xbb
jne 0x4183f7
cmp byte [esp + 0x46], 0xbf
jne 0x4183f7
mov eax, 0x20202020
mov word [esp + 0x44], ax
mov byte [esp + 0x46], al
mov dword [esp + 0x20], 0
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418406
mov ecx, dword [esp + 0x1c]
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
call fcn.00401b20
jmp 0x4183a5
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41842f
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41843e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41844d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466555
add esp, 0x140
ret