Function at 0x42a659
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
mov eax, 0x66d0
call fcn.00496fd0
mov eax, dword [0x50c7b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x42a752
push 8
xor edx, edx
lea edi, [ebp - 0x24]
pop ecx
xor eax, eax
mov dword [ebp - 0x6668], edx
mov esi, 0x208
mov dword [ebp - 0x6674], edx
push esi
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x634]
mov dword [ebp - 0x6664], edx
push eax
mov dword [ebp - 0x6694], edx
call fcn.0049f230
push esi
xor edi, edi
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.0049f230
push 0x2000
lea eax, [ebp - 0x463c]
push edi
push eax
call fcn.0049f230
push dword [ebx + 0x10]
mov dword [ebp - 0x668c], edi
call fcn.004a338c
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x66d0]
push edi
push eax
call fcn.0049f230
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x66d0], esi
mov dword [ebp - 0x66c0], eax
add esp, 0x34
lea eax, [ebp - 0x463c]
mov dword [ebp - 0x66bc], 0x104
mov dword [ebp - 0x66a4], eax
xor esi, esi
lea eax, [ebp - 0x66d0]
mov dword [ebp - 0x66a0], 0x1000
push eax
push esi
push dword [ebx + 0x10]
call fcn.004a338c
pop ecx
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x42a766
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496ca3
leave
ret 4
cmp dword [ebp - 0x66c4], 4
jne 0x42a77b
mov dword [ebp - 0x6688], 1
jmp 0x42a78a
cmp dword [ebp - 0x66c4], 3
jne 0x42a752
mov dword [ebp - 0x6688], esi
movzx edi, word [ebp - 0x66b8]
push esi
push esi
push esi
push esi
push 0x4d18d0
mov dword [ebp - 0x6684], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x6680], esi
test esi, esi
jne 0x42a7ba
push 0xfffffffffffffffd
pop edi
jmp 0x42ad2a
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push edi
lea eax, [ebp - 0x42c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x667c], edi
test edi, edi
je 0x42aaba
xor esi, esi
cmp dword [ebx + 0x70], 1
jne 0x42a7f0
mov eax, str.POST
jmp 0x42a80a
cmp dword [ebx + 0x70], 2
je 0x42a805
cmp dword [ebx + 0x20], esi
jbe 0x42a805
mov eax, str.POST
cmp dword [ebx + 0x1c], esi
jne 0x42a80a
mov eax, 0x4d7490
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004ac349
cmp dword [ebx + 0x78], 0
mov esi, 0x800c8200
mov eax, 0x80048200
pop ecx
cmove esi, eax
cmp dword [ebp - 0x6688], 0
pop ecx
je 0x42a847
mov ecx, ebx
or esi, 0x800000
call fcn.0042adf1
test eax, eax
jne 0x42a847
or esi, 0x1000
xor eax, eax
push eax
push esi
push eax
push eax
push str.HTTP_1.0
lea eax, [ebp - 0x463c]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x6668], edi
test edi, edi
je 0x42ad67
lea eax, [ebp - 0x634]
push str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__r_nConnection:close_r_n
push eax
call fcn.0042b2b4
pop ecx
pop ecx
push 0xa0000000
push 0xffffffffffffffff
lea eax, [ebp - 0x634]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [ebx + 0x24]
jmp 0x42a8ec
and dword [ebp - 0x6648], 0
lea ecx, [ebp - 0x6658]
and dword [ebp - 0x6644], 0
push esi
call fcn.00403f9b
cmp dword [ebp - 0x6644], 0x10
lea eax, [ebp - 0x6658]
push 0x20000000
cmovae eax, dword [ebp - 0x6658]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [ebp - 0x6658]
call fcn.0040403b
add esi, 0x18
cmp esi, dword [ebx + 0x28]
jne 0x42a8a1
mov eax, dword [ebp - 0x6674]
inc eax
mov dword [ebp - 0x6660], 4
mov dword [ebp - 0x6674], eax
xor esi, esi
lea eax, [ebp - 0x6660]
mov dword [ebp - 0x665c], esi
push eax
lea eax, [ebp - 0x665c]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x665c], 0x3180
lea eax, [ebp - 0x665c]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x42a9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x42a9b1
lea eax, [ebp - 0x6660]
mov dword [ebp - 0x6660], 4
push eax
lea eax, [ebp - 0x6670]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x6670], 0x100
lea eax, [ebp - 0x6670]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x6674]
cmp eax, 2
jl 0x42a8f7
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42ace8
test esi, esi
je 0x42ac3b
push 0x200
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0049f230
add esp, 0xc
mov dword [ebp - 0x6690], 0x100
xor eax, eax
xor esi, esi
mov dword [ebp - 0x6660], eax
push eax
lea eax, [ebp - 0x6690]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42aa21
lea eax, [ebp - 0x224]
push eax
call fcn.004a3338
pop ecx
mov esi, eax
cmp esi, 0xc8
je 0x42aac9
cmp esi, 0x197
je 0x42aa41
cmp esi, 0x193
jne 0x42aac2
cmp dword [ebp - 0x668c], 0
jne 0x42aac2
call fcn.0042af1c
test al, al
je 0x42aac2
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x667c]
test eax, eax
je 0x42aa6b
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x6680]
mov dword [ebp - 0x668c], 1
test eax, eax
je 0x42aa86
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
lea ecx, [ebp - 0x42c]
push esi
push esi
push 3
push esi
push esi
push dword [ebp - 0x6684]
mov eax, esi
push ecx
push eax
mov dword [ebp - 0x6680], eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x667c], edi
test edi, edi
jne 0x42a7e3
push 0xfffffffffffffffc
pop edi
jmp 0x42acee
mov edi, esi
jmp 0x42acee
push 0
lea eax, [ebp - 0x6690]
push eax
lea eax, [ebp - 0x224]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42aafb
lea eax, [ebp - 0x224]
push eax
call fcn.004a3338
pop ecx
mov dword [ebp - 0x6660], eax
jmp 0x42ab01
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebx + 0x38]
push eax
push ecx
push ecx
mov ecx, esp
lea edx, [ebp - 0x6669]
lea eax, [ebx + 0x30]
mov dword [ebp - 0x6684], ecx
push edx
push eax
call fcn.00429e3f
push edi
call fcn.0042a399
push 0x2001
xor edi, edi
lea eax, [ebp - 0x6640]
push edi
push eax
xor esi, esi
call fcn.0049f230
add esp, 0x1c
push 0x2001
lea eax, [ebp - 0x6640]
push 0
push eax
call fcn.0049f230
and dword [ebp - 0x665c], 0
lea eax, [ebp - 0x665c]
add esp, 0xc
push eax
push 0x2000
lea eax, [ebp - 0x6640]
push eax
push dword [ebp - 0x6668]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42abda
mov eax, dword [ebp - 0x665c]
add eax, edi
push eax
push esi
call fcn.004aaed9
push dword [ebp - 0x665c]
mov esi, eax
lea eax, [ebp - 0x6640]
push eax
lea ecx, [edi + esi]
push ecx
call fcn.0049e730
add edi, dword [ebp - 0x665c]
add esp, 0x14
cmp edi, 0x500000
jbe 0x42abbf
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42ad42
mov eax, dword [ebp - 0x665c]
jmp 0x42abf8
mov eax, dword [ebp - 0x6660]
test eax, eax
je 0x42ad4e
cmp edi, eax
jne 0x42ad4e
xor eax, eax
mov dword [ebp - 0x665c], eax
test eax, eax
jne 0x42ab3e
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x42ac13
push dword [ebx + 0x18]
push edi
push esi
push 0xc8
call eax
mov dword [ebp - 0x6694], 1
test esi, esi
je 0x42ac2b
push 0
push esi
call fcn.004aaed9
pop ecx
pop ecx
mov edi, dword [ebp - 0x6668]
mov dword [ebp - 0x6664], 0xc8
push 0x1001
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.0049f230
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x6678]
add esp, 0xc
mov dword [ebp - 0x6678], 0x1000
push 0
push eax
lea eax, [ebp - 0x1638]
push eax
push socket
push edi
call esi
lea eax, [ebp - 0x1638]
push eax
call fcn.004a33b0
pop ecx
push eax
lea eax, [ebp - 0x1638]
push eax
lea ecx, [ebx + 0x40]
call fcn.004041aa
push 0x1001
lea eax, [ebp - 0x263c]
push 0
push eax
call fcn.0049f230
add esp, 0xc
mov dword [ebp - 0x6678], 0x1000
lea eax, [ebp - 0x6678]
push 0
push eax
lea eax, [ebp - 0x263c]
push eax
push 0x16
push edi
call esi
lea eax, [ebp - 0x263c]
push eax
call fcn.004a33b0
pop ecx
push eax
lea eax, [ebp - 0x263c]
push eax
lea ecx, [ebx + 0x58]
call fcn.004041aa
mov edi, dword [ebp - 0x6664]
mov eax, dword [ebp - 0x6668]
test eax, eax
je 0x42acff
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x667c]
test eax, eax
je 0x42ad10
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x6680]
test eax, eax
je 0x42ad21
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x6694], 0
jne 0x42ad3b
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x42ad3b
push dword [ebx + 0x18]
push 0
push 0
push edi
call ecx
mov eax, edi
jmp 0x42a755
push 0
push esi
call fcn.004aaed9
pop ecx
pop ecx
jmp 0x42ace8
push 0xfffffffffffffffa
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x42acee
push 0
push esi
call fcn.004aaed9
pop ecx
pop ecx
jmp 0x42acee
push 0xfffffffffffffffb
pop edi
jmp 0x42acff