Function at 0x432956
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.0051d4f0
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x432a4f
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.00520800
push esi
xor edi, edi
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.00520800
push 0x2000
lea eax, [ebp - 0x463c]
push edi
push eax
call fcn.00520800
push dword [ebx + 0x10]
mov dword [ebp - 0x668c], edi
call fcn.00524c40
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x66d0]
push edi
push eax
call fcn.00520800
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.00524c40
pop ecx
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x432a63
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.0051d360
leave
ret 4
cmp dword [ebp - 0x66c4], 4
jne 0x432a78
mov dword [ebp - 0x6688], 1
jmp 0x432a87
cmp dword [ebp - 0x66c4], 3
jne 0x432a4f
mov dword [ebp - 0x6688], esi
movzx edi, word [ebp - 0x66b8]
push esi
push esi
push esi
push esi
push 0x556c1c
mov dword [ebp - 0x6684], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x6680], esi
test esi, esi
jne 0x432ab7
push 0xfffffffffffffffd
pop edi
jmp 0x433027
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 0x432db7
xor esi, esi
cmp dword [ebx + 0x70], 1
jne 0x432aed
mov eax, str.POST
jmp 0x432b07
cmp dword [ebx + 0x70], 2
je 0x432b02
cmp dword [ebx + 0x20], esi
jbe 0x432b02
mov eax, str.POST
cmp dword [ebx + 0x1c], esi
jne 0x432b07
mov eax, 0x5671e8
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005322eb
cmp dword [ebx + 0x78], 0
mov esi, 0x800c8200
mov eax, 0x80048200
pop ecx
cmove esi, eax
cmp dword [ebp - 0x6688], 0
pop ecx
je 0x432b44
mov ecx, ebx
or esi, 0x800000
call fcn.004330ee
test eax, eax
jne 0x432b44
or esi, 0x1000
xor eax, eax
push eax
push esi
push eax
push eax
push 0x56d024
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 0x433064
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.00433571
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 0x432be9
and dword [ebp - 0x6648], 0
lea ecx, [ebp - 0x6658]
and dword [ebp - 0x6644], 0
push esi
call fcn.004033bc
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.004036ba
add esi, 0x18
cmp esi, dword [ebx + 0x28]
jne 0x432b9e
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 0x432cae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x432cae
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 0x432bf4
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x432fe5
test esi, esi
je 0x432f38
push 0x200
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00520800
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 0x432d1e
lea eax, [ebp - 0x224]
push eax
call fcn.00524b20
pop ecx
mov esi, eax
cmp esi, 0xc8
je 0x432dc6
cmp esi, 0x197
je 0x432d3e
cmp esi, 0x193
jne 0x432dbf
cmp dword [ebp - 0x668c], 0
jne 0x432dbf
call fcn.004331e6
test al, al
je 0x432dbf
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x667c]
test eax, eax
je 0x432d68
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x6680]
mov dword [ebp - 0x668c], 1
test eax, eax
je 0x432d83
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 0x432ae0
push 0xfffffffffffffffc
pop edi
jmp 0x432feb
mov edi, esi
jmp 0x432feb
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 0x432df8
lea eax, [ebp - 0x224]
push eax
call fcn.00524b20
pop ecx
mov dword [ebp - 0x6660], eax
jmp 0x432dfe
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.00431f86
push edi
call fcn.00432653
push 0x2001
xor edi, edi
lea eax, [ebp - 0x6640]
push edi
push eax
xor esi, esi
call fcn.00520800
add esp, 0x1c
push 0x2001
lea eax, [ebp - 0x6640]
push 0
push eax
call fcn.00520800
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 0x432ed7
mov eax, dword [ebp - 0x665c]
add eax, edi
push eax
push esi
call fcn.00532e48
push dword [ebp - 0x665c]
mov esi, eax
lea eax, [ebp - 0x6640]
push eax
lea ecx, [edi + esi]
push ecx
call fcn.0051fd00
add edi, dword [ebp - 0x665c]
add esp, 0x14
cmp edi, 0x500000
jbe 0x432ebc
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 0x43303f
mov eax, dword [ebp - 0x665c]
jmp 0x432ef5
mov eax, dword [ebp - 0x6660]
test eax, eax
je 0x43304b
cmp edi, eax
jne 0x43304b
xor eax, eax
mov dword [ebp - 0x665c], eax
test eax, eax
jne 0x432e3b
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x432f10
push dword [ebx + 0x18]
push edi
push esi
push 0xc8
call eax
mov dword [ebp - 0x6694], 1
test esi, esi
je 0x432f28
push 0
push esi
call fcn.00532e48
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.00520800
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 0x80000016
push edi
call esi
lea eax, [ebp - 0x1638]
push eax
call fcn.00524dd0
pop ecx
push eax
lea eax, [ebp - 0x1638]
push eax
lea ecx, [ebx + 0x40]
call fcn.00403853
push 0x1001
lea eax, [ebp - 0x263c]
push 0
push eax
call fcn.00520800
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.00524dd0
pop ecx
push eax
lea eax, [ebp - 0x263c]
push eax
lea ecx, [ebx + 0x58]
call fcn.00403853
mov edi, dword [ebp - 0x6664]
mov eax, dword [ebp - 0x6668]
test eax, eax
je 0x432ffc
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x667c]
test eax, eax
je 0x43300d
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x6680]
test eax, eax
je 0x43301e
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x6694], 0
jne 0x433038
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x433038
push dword [ebx + 0x18]
push 0
push 0
push edi
call ecx
mov eax, edi
jmp 0x432a52
push 0
push esi
call fcn.00532e48
pop ecx
pop ecx
jmp 0x432fe5
push 0xfffffffffffffffa
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x432feb
push 0
push esi
call fcn.00532e48
pop ecx
pop ecx
jmp 0x432feb
push 0xfffffffffffffffb
pop edi
jmp 0x432ffc