Function at 0x4c31cc
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x9d
push 0
push 0
dec ecx
jne 0x4c31d4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c38e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004c30fc
lea eax, [ebp - 0x494]
call fcn.004c1eb8
push dword [ebp - 0x494]
push 0x4c38fc
push 0x4c3914
lea eax, [ebp - 0x498]
call fcn.004c1e98
push dword [ebp - 0x498]
push dword [ebx + 4]
lea eax, [ebp - 0x490]
mov edx, 5
call fcn.004055d0
mov eax, dword [ebp - 0x490]
mov esi, dword [0x4def08]
mov esi, dword [esi]
xor ecx, ecx
mov edx, 2
call esi
mov eax, ebx
call fcn.004c3b44
mov esi, eax
xor eax, eax
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x10]
mov edx, 0x4c3938
call fcn.00405664
jne 0x4c3275
or esi, 0x800000
or esi, 0xf000
lea eax, [ebp - 8]
mov edx, 0x4c3948
call fcn.004052d4
cmp dword [ebx + 8], 0
jne 0x4c32a1
lea eax, [ebp - 4]
mov edx, 0x4c39b0
call fcn.004052d4
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x4c32d8
lea eax, [ebp - 4]
mov edx, 0x4c39bc
call fcn.004052d4
mov eax, dword [ebx + 8]
call fcn.004056cc
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c32c5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x4c39cc
call fcn.00405554
push 0
push 0
push 0
push 0
push 0x4c3a00
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c38a2
xor edx, edx
push ebp
push 0x4c389b
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x24], 0xffffffff
push 4
lea eax, [ebp - 0x24]
push eax
push 0x41
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp dword [ebx + 0x28], 0
jle 0x4c3334
push 4
lea eax, [ebx + 0x28]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp dword [ebx + 0x2c], 0
jle 0x4c334b
push 4
lea eax, [ebx + 0x2c]
push eax
push 6
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
push 0x4c3a04
push 0
mov eax, dword [ebx + 0x20]
call fcn.00409e78
push eax
mov eax, dword [ebx + 0x1c]
call fcn.004056cc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c3828
xor edx, edx
push ebp
push 0x4c3821
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push esi
push 0
push 0x4c3a00
push 0x4c3a04
mov eax, dword [ebx + 0x24]
call fcn.004056cc
push eax
mov eax, dword [ebp - 4]
call fcn.004056cc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c37e0
cmp byte [ebx + 0x30], 0
je 0x4c33da
call fcn.00404c7c
call fcn.00404c7c
jmp 0x4c38b8
xor edx, edx
push ebp
push 0x4c37d9
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 8]
test esi, esi
je 0x4c33f4
sub esi, 4
mov esi, dword [esi]
push 0xa0000000
push esi
mov eax, dword [ebp - 8]
call fcn.004056cc
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
jmp 0x4c35d0
cmp byte [ebx + 0x30], 0
je 0x4c342b
call fcn.00404c7c
call fcn.00404c7c
call fcn.00404c7c
jmp 0x4c38b8
call sub.kernel32.dll_GetLastError_1
mov esi, eax
mov dword [ebx + 0x40], esi
cmp esi, 0x2f0c
jne 0x4c345c
lea eax, [ebp - 0x20]
push eax
push 7
push 0x2f0c
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.wininet.dll_InternetErrorDlg
jmp 0x4c35d0
lea eax, [ebp - 0x4a0]
call fcn.004c1eb8
push dword [ebp - 0x4a0]
push 0x4c3a18
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4a4]
call fcn.00409e28
push dword [ebp - 0x4a4]
push 0x4c3a2c
lea eax, [ebp - 0x49c]
mov edx, 4
call fcn.004055d0
mov eax, dword [ebp - 0x49c]
mov edi, dword [0x4def08]
mov edi, dword [edi]
xor ecx, ecx
mov edx, 2
call edi
cmp esi, 0x2ee2
jne 0x4c34fd
lea edx, [ebp - 0x4ac]
mov eax, dword [ebx + 0x28]
call fcn.00409d3c
mov ecx, dword [ebp - 0x4ac]
lea eax, [ebp - 0x4a8]
mov edx, 0x4c3a38
call fcn.00405554
mov ecx, dword [ebp - 0x4a8]
mov dl, 1
mov eax, dword [0x4089cc]
call fcn.0040dcf4
call fcn.00404bd0
jmp 0x4c35d0
cmp esi, 0x2ee5
jne 0x4c3544
lea edx, [ebp - 0x4b4]
mov eax, ebx
call fcn.004c30b8
mov ecx, dword [ebp - 0x4b4]
lea eax, [ebp - 0x4b0]
mov edx, 0x4c3a4c
call fcn.00405554
mov ecx, dword [ebp - 0x4b0]
mov dl, 1
mov eax, dword [0x4c2724]
call fcn.0040dcf4
call fcn.00404bd0
jmp 0x4c35d0
cmp esi, 0x2efd
jne 0x4c3588
lea edx, [ebp - 0x4bc]
mov eax, ebx
call fcn.004c30b8
mov ecx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x4b8]
mov edx, 0x4c3a64
call fcn.00405554
mov ecx, dword [ebp - 0x4b8]
mov dl, 1
mov eax, dword [0x4c2724]
call fcn.0040dcf4
call fcn.00404bd0
jmp 0x4c35d0
push 0x4c3a78
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c4]
call fcn.00409e28
push dword [ebp - 0x4c4]
push 0x4c3a2c
lea eax, [ebp - 0x4c0]
mov edx, 3
call fcn.004055d0
mov ecx, dword [ebp - 0x4c0]
mov dl, 1
mov eax, dword [0x4089cc]
call fcn.0040dcf4
call fcn.00404bd0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4c3411
cmp byte [ebx + 0x30], 0
je 0x4c3607
call fcn.00404c7c
call fcn.00404c7c
call fcn.00404c7c
jmp 0x4c38b8
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0xa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x489]
push eax
push 0x13
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x4c8]
lea edx, [ebp - 0x489]
mov ecx, 0x14
call fcn.0040532c
mov eax, dword [ebp - 0x4c8]
mov edx, 0x194
call fcn.00409eb4
mov esi, eax
cmp esi, 0x18f
jle 0x4c36f5
lea eax, [ebp - 0x4d0]
call fcn.004c1eb8
push dword [ebp - 0x4d0]
push 0x4c3a18
lea edx, [ebp - 0x4d4]
mov eax, esi
call fcn.00409d3c
push dword [ebp - 0x4d4]
push 0x4c3a2c
lea eax, [ebp - 0x4cc]
mov edx, 4
call fcn.004055d0
mov eax, dword [ebp - 0x4cc]
mov ebx, dword [0x4def08]
mov ebx, dword [ebx]
xor ecx, ecx
mov edx, 2
call ebx
lea edx, [ebp - 0x4dc]
mov eax, esi
call fcn.00409d3c
mov ecx, dword [ebp - 0x4dc]
lea eax, [ebp - 0x4d8]
mov edx, 0x4c3aa4
call fcn.00405554
mov ecx, dword [ebp - 0x4d8]
mov dl, 1
mov eax, dword [0x4c2724]
call fcn.0040dcf4
call fcn.00404bd0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x475]
push eax
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x4e0]
lea edx, [ebp - 0x475]
mov ecx, 0x40
call fcn.004054ac
mov eax, dword [ebp - 0x4e0]
or edx, 0xffffffff
call fcn.00409eb4
mov esi, eax
xor edi, edi
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.004c309c
lea eax, [ebp - 0x435]
xor ecx, ecx
mov edx, 0x401
call fcn.00403ae0
cmp byte [ebx + 0x30], 0
je 0x4c376e
call fcn.00404c7c
call fcn.00404c7c
call fcn.00404c7c
jmp 0x4c38b8
lea eax, [ebp - 0x1c]
push eax
push 0x401
lea eax, [ebp - 0x435]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
add edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4c379f
lea edx, [ebp - 0x435]
mov ecx, dword [ebp - 0x1c]
call fcn.0041f27c
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.004c309c
lea eax, [ebp - 0x435]
xor ecx, ecx
mov edx, 0x401
call fcn.00403ae0
cmp dword [ebp - 0x1c], 0
jne 0x4c3754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c380a
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov ecx, dword [ebx + 0x24]
lea eax, [ebp - 0x4e4]
mov edx, 0x4c3ac4
call fcn.00405554
mov ecx, dword [ebp - 0x4e4]
mov dl, 1
mov eax, dword [0x4c2724]
call fcn.0040dcf4
call fcn.00404bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3852
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov ecx, dword [ebx + 0x1c]
lea eax, [ebp - 0x4e8]
mov edx, 0x4c3ae0
call fcn.00405554
mov ecx, dword [ebp - 0x4e8]
mov dl, 1
mov eax, dword [0x4089cc]
call fcn.0040dcf4
call fcn.00404bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c38b8
lea eax, [ebp - 0x4ec]
call fcn.004c1eb8
lea eax, [ebp - 0x4ec]
mov edx, 0x4c3af8
call fcn.00405508
mov eax, dword [ebp - 0x4ec]
mov ebx, dword [0x4def08]
mov ebx, dword [ebx]
xor ecx, ecx
mov edx, 2
call ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov ecx, 0x4c3b24
mov dl, 1
mov eax, dword [0x4089cc]
call fcn.0040dcf4
call fcn.00404bd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c38ea
lea eax, [ebp - 0x4ec]
mov edx, 0x18
call fcn.00405260
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405260
ret