Function at 0x4c66f0
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, 0x697c
call fcn.004ed7c0
mov eax, dword [0x55930c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2480], eax
cmp dword [ebp - 0x2480], 0
jne 0x4c6721
or eax, 0xffffffff
jmp 0x4c72d5
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x46d4], 0
mov dword [ebp - 0x1224], 0
mov dword [ebp - 0x46d0], 0
mov dword [ebp - 0x248c], 0
mov dword [ebp - 0x449c], 0
mov dword [ebp - 0x46cc], 0
xor ecx, ecx
mov word [ebp - 0x46c8], cx
xor edx, edx
mov dword [ebp - 0x46c6], edx
mov dword [ebp - 0x46c2], edx
mov dword [ebp - 0x46be], edx
mov dword [ebp - 0x46ba], edx
mov dword [ebp - 0x46b6], edx
mov dword [ebp - 0x46b2], edx
mov dword [ebp - 0x46ae], edx
mov word [ebp - 0x46aa], dx
xor eax, eax
mov word [ebp - 0x1470], ax
push 0x206
push 0
lea ecx, [ebp - 0x146e]
push ecx
call fcn.004ed5e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x46a8], dx
push 0x206
push 0
lea eax, [ebp - 0x46a6]
push eax
call fcn.004ed5e0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x1220], cx
push 0x206
push 0
lea edx, [ebp - 0x121e]
push edx
call fcn.004ed5e0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x4498], ax
push 0x1ffe
push 0
lea ecx, [ebp - 0x4496]
push ecx
call fcn.004ed5e0
add esp, 0xc
mov edx, 0x50
mov word [ebp - 0x46dc], dx
mov dword [ebp - 0x46d8], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x2488], 0
mov eax, dword [ebp - 0x2480]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004ecf28
add esp, 4
mov dword [ebp - 0x122c], eax
mov dword [ebp - 0x2494], 1
push 0x3c
push 0
lea edx, [ebp - 0x1268]
push edx
call fcn.004ed5e0
add esp, 0xc
mov dword [ebp - 0x1268], 0x3c
lea eax, [ebp - 0x1220]
mov dword [ebp - 0x1258], eax
mov dword [ebp - 0x1254], 0x104
lea ecx, [ebp - 0x4498]
mov dword [ebp - 0x123c], ecx
mov dword [ebp - 0x1238], 0x1000
lea edx, [ebp - 0x1268]
push edx
push 0
mov eax, dword [ebp - 0x2480]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004ecf28
add esp, 4
push eax
mov edx, dword [ebp - 0x2480]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4c68f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x46e0], eax
or eax, 0xffffffff
jmp 0x4c72d5
cmp dword [ebp - 0x125c], 4
jne 0x4c6907
mov dword [ebp - 0x2494], 1
jmp 0x4c6924
cmp dword [ebp - 0x125c], 3
jne 0x4c691c
mov dword [ebp - 0x2494], 0
jmp 0x4c6924
or eax, 0xffffffff
jmp 0x4c72d5
mov cx, word [ebp - 0x1250]
mov word [ebp - 0x46dc], cx
push 0
push 0
push 0
push 0
push 0x537a88
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1228], eax
cmp dword [ebp - 0x1228], 0
jne 0x4c6963
mov dword [ebp - 0x248c], 0xfffffffd
jmp 0x4c723a
mov dword [ebp - 4], 0x7d0
mov dword [ebp - 0x2484], 0x7530
push 4
lea edx, [ebp - 4]
push edx
push 2
mov eax, dword [ebp - 0x1228]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x2484]
push ecx
push 6
mov edx, dword [ebp - 0x1228]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x2484]
push eax
push 5
mov ecx, dword [ebp - 0x1228]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x46dc]
push edx
lea eax, [ebp - 0x1220]
push eax
mov ecx, dword [ebp - 0x1228]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x46d4], eax
cmp dword [ebp - 0x46d4], 0
jne 0x4c69fd
mov dword [ebp - 0x248c], 0xfffffffc
jmp 0x4c723a
mov ecx, dword [ebp - 0x2480]
call fcn.004c7430
cmp eax, 1
jne 0x4c6a23
push 0x537a8c
lea edx, [ebp - 0x46c8]
push edx
call fcn.004f19ad
add esp, 8
jmp 0x4c6a8b
mov ecx, dword [ebp - 0x2480]
call fcn.004c7430
cmp eax, 2
jne 0x4c6a49
push 0x537a98
lea eax, [ebp - 0x46c8]
push eax
call fcn.004f19ad
add esp, 8
jmp 0x4c6a8b
mov ecx, dword [ebp - 0x2480]
cmp dword [ecx + 0x1c], 0
jbe 0x4c6a77
mov edx, dword [ebp - 0x2480]
cmp dword [edx + 0x18], 0
je 0x4c6a77
push str.POST
lea eax, [ebp - 0x46c8]
push eax
call fcn.004f19ad
add esp, 8
jmp 0x4c6a8b
push 0x537aac
lea ecx, [ebp - 0x46c8]
push ecx
call fcn.004f19ad
add esp, 8
mov dword [ebp - 0x46d8], 0x80048200
cmp dword [ebp - 0x2494], 0
je 0x4c6ad0
mov edx, dword [ebp - 0x46d8]
or edx, 0x800000
mov dword [ebp - 0x46d8], edx
mov ecx, dword [ebp - 0x2480]
call fcn.004c5d60
test eax, eax
jne 0x4c6ad0
mov eax, dword [ebp - 0x46d8]
or eax, 0x1000
mov dword [ebp - 0x46d8], eax
mov ecx, dword [ebp - 0x2480]
cmp dword [ecx + 0xb8], 0
je 0x4c6af7
mov edx, dword [ebp - 0x2480]
mov eax, dword [ebp - 0x46d8]
or eax, dword [edx + 0xb8]
mov dword [ebp - 0x46d8], eax
push 0
mov ecx, dword [ebp - 0x46d8]
push ecx
push 0
push 0
push str.HTTP_1.0
lea edx, [ebp - 0x4498]
push edx
lea eax, [ebp - 0x46c8]
push eax
mov ecx, dword [ebp - 0x46d4]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x1224], eax
cmp dword [ebp - 0x1224], 0
jne 0x4c6b42
mov dword [ebp - 0x248c], 0xfffffffb
jmp 0x4c723a
push str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__r_nConnection:close_r_n
lea edx, [ebp - 0x1470]
push edx
call fcn.004be960
add esp, 8
mov dword [ebp - 0x46ec], 0
push 0xa0000000
push 0xffffffffffffffff
lea eax, [ebp - 0x1470]
push eax
mov ecx, dword [ebp - 0x1224]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov dword [ebp - 0x46ec], eax
lea edx, [ebp - 0x46e8]
push edx
mov ecx, dword [ebp - 0x2480]
add ecx, 0x20
call fcn.00426230
jmp 0x4c6bac
push 0
lea eax, [ebp - 0x6970]
push eax
lea ecx, [ebp - 0x46e8]
call fcn.004c7a00
lea ecx, [ebp - 0x6978]
push ecx
mov ecx, dword [ebp - 0x2480]
add ecx, 0x20
call fcn.00426260
push eax
lea ecx, [ebp - 0x46e8]
call fcn.00426a70
movzx edx, al
test edx, edx
je 0x4c6c21
lea ecx, [ebp - 0x46e8]
call fcn.004269e0
push eax
lea ecx, [ebp - 0x470c]
call fcn.00425960
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x470c]
call fcn.00425ab0
push eax
mov eax, dword [ebp - 0x1224]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x46ec], eax
lea ecx, [ebp - 0x470c]
call fcn.00425990
jmp 0x4c6b98
mov dword [ebp - 0x46f0], 1
mov ecx, dword [ebp - 0x46d0]
add ecx, 1
mov dword [ebp - 0x46d0], ecx
mov edx, 1
test edx, edx
je 0x4c6c9d
mov dword [ebp - 0x4714], 0
mov dword [ebp - 0x4710], 4
lea eax, [ebp - 0x4710]
push eax
lea ecx, [ebp - 0x4714]
push ecx
push 0x1f
mov edx, dword [ebp - 0x1224]
push edx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [ebp - 0x4714]
or eax, 0x3180
mov dword [ebp - 0x4714], eax
push 4
lea ecx, [ebp - 0x4714]
push ecx
push 0x1f
mov edx, dword [ebp - 0x1224]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x2480]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x2480]
mov eax, dword [edx + 0x18]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1224]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x449c], eax
cmp dword [ebp - 0x449c], 0
jne 0x4c6d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4718], eax
cmp dword [ebp - 0x4718], 0x2f0d
jne 0x4c6d58
mov dword [ebp - 0x4720], 4
lea edx, [ebp - 0x4720]
push edx
lea eax, [ebp - 0x4728]
push eax
push 0x1f
mov ecx, dword [ebp - 0x1224]
push ecx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov dword [ebp - 0x4724], eax
mov edx, dword [ebp - 0x4728]
or edx, 0x100
mov dword [ebp - 0x4728], edx
push 4
lea eax, [ebp - 0x4728]
push eax
push 0x1f
mov ecx, dword [ebp - 0x1224]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x471c], eax
cmp dword [ebp - 0x46d0], 2
jge 0x4c6d58
jmp 0x4c6c2b
push 0
mov ecx, dword [ebp - 0x2480]
call fcn.004c7450
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x247c], eax
cmp dword [ebp - 0x247c], 0
jne 0x4c6d80
jmp 0x4c723a
cmp dword [ebp - 0x449c], 0
je 0x4c718c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4734], edx
xor eax, eax
mov word [ebp - 0x4938], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x4936]
push ecx
call fcn.004ed5e0
add esp, 0xc
mov dword [ebp - 0x4940], 0x100
mov dword [ebp - 0x4730], 0
mov dword [ebp - 0x472c], 0
mov dword [ebp - 0x493c], 0
push 0
lea edx, [ebp - 0x4940]
push edx
lea eax, [ebp - 0x4938]
push eax
push 0x13
mov ecx, dword [ebp - 0x1224]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x493c], eax
cmp dword [ebp - 0x493c], 0
je 0x4c6e20
lea edx, [ebp - 0x4938]
push edx
call fcn.004ee6fc
add esp, 4
mov dword [ebp - 0x4730], eax
cmp dword [ebp - 0x4730], 0xc8
jne 0x4c7104
push 0
lea eax, [ebp - 0x4940]
push eax
lea ecx, [ebp - 0x4938]
push ecx
push 5
mov edx, dword [ebp - 0x1224]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x493c], eax
cmp dword [ebp - 0x493c], 0
je 0x4c6e75
lea eax, [ebp - 0x4938]
push eax
call fcn.004ee6fc
add esp, 4
mov dword [ebp - 0x472c], eax
jmp 0x4c6e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6954], eax
mov ecx, dword [ebp - 0x4734]
add ecx, 0x58
push ecx
mov edx, dword [ebp - 0x4734]
add edx, 0x38
sub esp, 0x20
mov ecx, esp
push edx
call fcn.004c7470
mov eax, dword [ebp - 0x1224]
push eax
call fcn.004c6580
add esp, 0x28
mov dword [ebp - 0x694c], 0
mov dword [ebp - 0x6950], 0
mov byte [ebp - 0x6948], 0
push 0x2000
push 0
lea ecx, [ebp - 0x6947]
push ecx
call fcn.004ed5e0
add esp, 0xc
mov edx, 1
test edx, edx
je 0x4c70ff
push 0x2001
push 0
lea eax, [ebp - 0x6948]
push eax
call fcn.004ed5e0
add esp, 0xc
mov dword [ebp - 0x695c], 0
lea ecx, [ebp - 0x695c]
push ecx
push 0x2000
lea edx, [ebp - 0x6948]
push edx
mov eax, dword [ebp - 0x1224]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x6958], eax
cmp dword [ebp - 0x6958], 0
je 0x4c701d
mov dword [ebp - 0x6964], 0
mov ecx, dword [ebp - 0x6950]
add ecx, dword [ebp - 0x695c]
push ecx
mov edx, dword [ebp - 0x694c]
push edx
call fcn.004f23d4
add esp, 8
mov dword [ebp - 0x6964], eax
cmp dword [ebp - 0x6964], 0
jne 0x4c6f79
jmp 0x4c723a
mov eax, dword [ebp - 0x6964]
mov dword [ebp - 0x694c], eax
mov ecx, dword [ebp - 0x695c]
push ecx
lea edx, [ebp - 0x6948]
push edx
mov eax, dword [ebp - 0x694c]
add eax, dword [ebp - 0x6950]
push eax
call fcn.004ec360
add esp, 0xc
mov ecx, dword [ebp - 0x6950]
add ecx, dword [ebp - 0x695c]
mov dword [ebp - 0x6950], ecx
cmp dword [ebp - 0x6950], 0x500000
jbe 0x4c6fd8
mov ecx, dword [ebp - 0x4734]
call fcn.004c7450
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
mov ecx, dword [ebp - 0x4734]
call fcn.004c7450
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x6960], eax
cmp dword [ebp - 0x6960], 0
jne 0x4c701b
push 0
mov edx, dword [ebp - 0x694c]
push edx
call fcn.004f23d4
add esp, 8
mov dword [ebp - 0x694c], 0
jmp 0x4c723a
jmp 0x4c707f
cmp dword [ebp - 0x472c], 0
jbe 0x4c7040
mov eax, dword [ebp - 0x6950]
cmp eax, dword [ebp - 0x472c]
jne 0x4c7040
mov dword [ebp - 0x695c], 0
jmp 0x4c707f
mov dword [ebp - 0x248c], 0xfffffffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6968], eax
cmp dword [ebp - 0x694c], 0
je 0x4c707a
push 0
mov ecx, dword [ebp - 0x694c]
push ecx
call fcn.004f23d4
add esp, 8
mov dword [ebp - 0x694c], 0
jmp 0x4c723a
cmp dword [ebp - 0x695c], 0
jne 0x4c70fa
mov edx, dword [ebp - 0x4734]
cmp dword [edx + 0x10], 0
je 0x4c70be
mov eax, dword [ebp - 0x4734]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x6950]
push edx
mov eax, dword [ebp - 0x694c]
push eax
mov ecx, dword [ebp - 0x4730]
push ecx
mov edx, dword [ebp - 0x4734]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x46cc], 1
cmp dword [ebp - 0x694c], 0
je 0x4c70ec
push 0
mov ecx, dword [ebp - 0x694c]
push ecx
call fcn.004f23d4
add esp, 8
mov dword [ebp - 0x694c], 0
mov edx, dword [ebp - 0x4730]
mov dword [ebp - 0x248c], edx
jmp 0x4c70ff
jmp 0x4c6edf
jmp 0x4c718c
cmp dword [ebp - 0x4730], 0x197
je 0x4c711c
cmp dword [ebp - 0x4730], 0x193
jne 0x4c717b
cmp dword [ebp - 0x2488], 0
jne 0x4c717b
cmp dword [ebp - 0x1224], 0
je 0x4c713b
mov eax, dword [ebp - 0x1224]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x46d4], 0
je 0x4c7151
mov ecx, dword [ebp - 0x46d4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2488], 1
cmp dword [ebp - 0x1228], 0
je 0x4c717b
mov edx, dword [ebp - 0x1228]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1228], 0
mov eax, dword [ebp - 0x4730]
mov dword [ebp - 0x248c], eax
jmp 0x4c723a
push 0x1001
push 0
lea ecx, [ebp - 0x2478]
push ecx
call fcn.004ed5e0
add esp, 0xc
mov dword [ebp - 0x2490], 0x1000
push 0
lea edx, [ebp - 0x2490]
push edx
lea eax, [ebp - 0x2478]
push eax
push SafeArrayUnaccessData
mov ecx, dword [ebp - 0x1224]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea edx, [ebp - 0x2478]
push edx
mov ecx, dword [ebp - 0x2480]
add ecx, 0x78
call fcn.004259c0
push 0x1001
push 0
lea eax, [ebp - 0x1018]
push eax
call fcn.004ed5e0
add esp, 0xc
mov dword [ebp - 0x2490], 0x1000
push 0
lea ecx, [ebp - 0x2490]
push ecx
lea edx, [ebp - 0x1018]
push edx
push 0x16
mov eax, dword [ebp - 0x1224]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x2480]
add ecx, 0x94
call fcn.004259c0
cmp dword [ebp - 0x1224], 0
je 0x4c7250
mov edx, dword [ebp - 0x1224]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x46d4], 0
je 0x4c7266
mov eax, dword [ebp - 0x46d4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1228], 0
je 0x4c727c
mov ecx, dword [ebp - 0x1228]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x46d4], 0
mov dword [ebp - 0x1224], 0
cmp dword [ebp - 0x46cc], 0
jne 0x4c72cf
mov edx, dword [ebp - 0x2480]
cmp dword [edx + 0x10], 0
je 0x4c72cf
mov eax, dword [ebp - 0x2480]
mov ecx, dword [eax + 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x248c]
push edx
mov eax, dword [ebp - 0x2480]
mov ecx, dword [eax + 0x10]
call ecx
mov eax, dword [ebp - 0x248c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004e9752
mov esp, ebp
pop ebp
ret 4