Function at 0x4c76cc
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
push ecx
mov ecx, 0x110
push 0
push 0
dec ecx
jne 0x4c76d5
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405c1c
mov eax, dword [ebp - 8]
call fcn.00405c1c
mov eax, dword [ebp - 0xc]
call fcn.00405c1c
mov eax, dword [ebp + 0xc]
call fcn.00405c1c
xor eax, eax
push ebp
push 0x4c7c3a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4eef38], 0
je 0x4c7732
mov eax, dword [ebp + 8]
mov edx, 0x4c7c50
call fcn.004057ac
jmp 0x4c7bfa
mov eax, dword [ebp + 8]
call fcn.00405758
lea edx, [ebp - 0x860]
mov eax, dword [ebp - 4]
call fcn.00409e64
mov edx, dword [ebp - 0x860]
lea eax, [ebp - 4]
call fcn.004057f0
lea edx, [ebp - 0x864]
mov eax, dword [ebp - 8]
call fcn.00409e64
mov edx, dword [ebp - 0x864]
lea eax, [ebp - 8]
call fcn.004057f0
lea edx, [ebp - 0x868]
mov eax, dword [ebp - 0xc]
call fcn.00409e64
mov edx, dword [ebp - 0x868]
lea eax, [ebp - 0xc]
call fcn.004057f0
lea edx, [ebp - 0x86c]
mov eax, dword [ebp + 0xc]
call fcn.00409e64
mov edx, dword [ebp - 0x86c]
lea eax, [ebp + 0xc]
call fcn.004057f0
call fcn.004c6920
test al, al
je 0x4c77c5
mov eax, dword [ebp + 8]
mov edx, 0x4c7c5c
call fcn.004057ac
jmp 0x4c7bfa
call fcn.004c7360
test al, al
jne 0x4c77e0
mov eax, dword [ebp + 8]
mov edx, 0x4c7c68
call fcn.004057ac
jmp 0x4c7bfa
mov eax, dword [ebp + 0xc]
call fcn.004c7388
test al, al
jne 0x4c77fe
mov eax, dword [ebp + 8]
mov edx, 0x4c7c74
call fcn.004057ac
jmp 0x4c7bfa
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x53], 0
lea ecx, [ebp - 0x870]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004c6258
mov ecx, dword [ebp - 0x870]
lea eax, [ebp - 0x2c]
mov edx, 0x4c7c80
call fcn.00405a78
lea eax, [ebp - 0x859]
xor ecx, ecx
mov edx, 0x801
call fcn.004039f4
push 0
push 0
push 0
push 0
push 0x4c7c88
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c7b96
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x4c7b5b
mov eax, dword [ebp - 0x20]
push eax
push 0
push 3
push 0
push 0
mov ax, word [0x4eef30]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00405c2c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c7b52
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x4eef34]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405c2c
push eax
push 0x4c7c94
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4c7b49
mov byte [ebp - 0x53], 0
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x44], eax
call fcn.0040cb70
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x4e]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x52]
push eax
lea ecx, [ebp - 0x4a]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x46]
call fcn.0047ff5c
movzx eax, word [ebp - 0x52]
movzx edx, word [ebp - 0x50]
imul edx, edx, 0x3e8
add eax, edx
movzx edx, word [ebp - 0x4e]
imul edx, edx, 0x3c
imul edx, edx, 0x3e8
add eax, edx
movzx edx, word [ebp - 0x4c]
imul edx, edx, 0x3c
imul edx, edx, 0x3c
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebp - 0x3c], eax
jmp 0x4c7a72
mov eax, dword [ebp - 0x2c]
call fcn.00405a28
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00405c2c
push eax
push 0x2f
push 0x4c7c9c
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x53], al
cmp byte [ebp - 0x53], 0
je 0x4c7a08
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea eax, [ebp - 0x859]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
lea eax, [ebp - 0x28]
call fcn.00405758
cmp dword [ebp - 0x1c], 0
jbe 0x4c7a08
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x87c]
lea edx, [ebp - 0x859]
mov ecx, 0x801
call fcn.004059d8
mov eax, dword [ebp - 0x87c]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.00405c8c
mov eax, dword [ebp - 0x878]
lea edx, [ebp - 0x874]
call fcn.00409e64
mov edx, dword [ebp - 0x874]
lea eax, [ebp - 0x28]
call fcn.00405a34
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea eax, [ebp - 0x859]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x1c], 0
ja 0x4c799d
inc dword [ebp - 0x38]
call fcn.0040cb70
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x4e]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x52]
push eax
lea ecx, [ebp - 0x4a]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x46]
call fcn.0047ff5c
movzx eax, word [ebp - 0x52]
movzx edx, word [ebp - 0x50]
imul edx, edx, 0x3e8
add eax, edx
movzx edx, word [ebp - 0x4e]
imul edx, edx, 0x3c
imul edx, edx, 0x3e8
add eax, edx
movzx edx, word [ebp - 0x4c]
imul edx, edx, 0x3c
imul edx, edx, 0x3c
imul edx, edx, 0x3e8
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
cmp byte [ebp - 0x53], 0
jne 0x4c7a8b
cmp dword [ebp - 0x38], 2
jge 0x4c7a8b
cmp dword [ebp - 0x44], 0x2328
jl 0x4c7941
cmp byte [ebp - 0x53], 0
jne 0x4c7aaa
lea eax, [ebp - 0x30]
mov edx, 0x4c7c50
call fcn.004057f0
mov byte [0x4eef38], 1
jmp 0x4c7b40
push ebp
mov eax, dword [ebp - 0x28]
call fcn.004c75c8
pop ecx
test al, al
je 0x4c7ac7
lea eax, [ebp - 0x30]
mov edx, 0x4c7cd4
call fcn.004057f0
jmp 0x4c7b40
lea eax, [ebp - 0x24]
call fcn.00405758
mov eax, dword [ebp - 0x28]
call fcn.00405a28
test eax, eax
jle 0x4c7b35
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov al, byte [eax + edx - 1]
add al, 0xd3
sub al, 2
jb 0x4c7b0a
dec eax
sub al, 0xa
jb 0x4c7b0a
add al, 0xf9
sub al, 0x1a
jb 0x4c7b0a
sub al, 4
je 0x4c7b0a
add al, 0xfe
sub al, 0x1a
jae 0x4c7b2d
lea eax, [ebp - 0x880]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov dl, byte [edx + ecx - 1]
call fcn.00405940
mov edx, dword [ebp - 0x880]
lea eax, [ebp - 0x24]
call fcn.00405a34
inc dword [ebp - 0x34]
dec dword [ebp - 0x58]
jne 0x4c7ae5
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x24]
call fcn.004057f0
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7b9d
cmp dword [ebp - 0x14], 0
je 0x4c7b77
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x18], 0
je 0x4c7b86
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x10], 0
je 0x4c7b95
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7c41
lea eax, [ebp - 0x884]
mov edx, 0xa
call fcn.0040577c
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.0040577c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040577c
lea eax, [ebp + 0xc]
call fcn.00405758
ret