Function at 0x4f413c
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, 0x1011
push 0
push 0
dec ecx
jne 0x4f4145
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f4753
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405014
mov dword [ebp - 0xc], 0x400
mov eax, dword [ebp - 0xc]
call fcn.00402bd0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00403830
mov dword [ebp - 0x20], 0x400
mov eax, dword [ebp - 0x20]
call fcn.00402bd0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00403830
mov dword [ebp - 0x24], 0x400
mov eax, dword [ebp - 0x24]
call fcn.00402bd0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.00403830
mov dword [ebp - 0x28], 0x400
mov eax, dword [ebp - 0x28]
call fcn.00402bd0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00403830
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp - 0x2c]
call fcn.00402bd0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.00403830
xor edx, edx
push ebp
push 0x4f4721
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x26
push 0
call sub.wininet.dll_InternetQueryOptionA
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x2b
push 0
call sub.wininet.dll_InternetQueryOptionA
cmp eax, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x2c
push 0
call sub.wininet.dll_InternetQueryOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2d], al
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x1c
push 0
call sub.wininet.dll_InternetQueryOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2e], al
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0x1d
push 0
call sub.wininet.dll_InternetQueryOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2f], al
push 0
push 0
push 0
push 0
push 0x4f4764
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x34], eax
xor edx, edx
push ebp
push 0x4f46e4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x34], 0
je 0x4f468c
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jne 0x4f4336
push 0xc
mov eax, dword [ebp - 8]
push eax
push 3
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionA
test bl, bl
je 0x4f42eb
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x2b
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp byte [ebp - 0x2d], 0
je 0x4f4304
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x2c
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp byte [ebp - 0x2e], 0
je 0x4f431d
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x1c
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp byte [ebp - 0x2f], 0
je 0x4f4336
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0x1d
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionA
lea eax, [ebp - 0x52]
push eax
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x40]
mov eax, esi
call fcn.004f3fc4
push 1
push 0
push 3
push 0x4f4788
push 0x4f4788
mov ax, word [ebp - 0x52]
push eax
mov eax, dword [ebp - 0x40]
call fcn.004054d4
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x38], eax
xor edx, edx
push ebp
push 0x4f4685
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x38], 0
je 0x4f462d
mov eax, 0x4f478c
mov dword [ebp - 0x4c], eax
mov eax, 0x4f4798
mov dword [ebp - 0x50], eax
push 0
push 0x80400000
lea eax, [ebp - 0x4c]
push eax
push 0x4f4788
push 0x4f47c8
mov eax, dword [ebp - 0x44]
call fcn.004054d4
push eax
push 0x4f47d4
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x3c], eax
xor edx, edx
push ebp
push 0x4f4626
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x3c], 0
je 0x4f45ce
mov dword [ebp - 0x60], 0x927c0
push 4
lea eax, [ebp - 0x60]
push eax
push 6
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4f458b
test edi, edi
je 0x4f4416
lea edx, [ebp - 0x48]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x4f441e
lea eax, [ebp - 0x48]
call fcn.00405014
mov eax, dword [ebp - 0x48]
call fcn.004052d4
push eax
lea eax, [ebp - 0x48]
call fcn.0040552c
push eax
lea eax, [ebp - 0x8064]
mov edx, dword [ebp - 0x50]
call fcn.0040520c
mov eax, dword [ebp - 0x8064]
call fcn.004052d4
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4f4545
mov eax, dword [ebp - 4]
cmp word [eax + 0x12], 0
je 0x4f447d
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41e174]
call fcn.004235c4
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x4f451f
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x8000
lea eax, [ebp - 0x8060]
xor ecx, ecx
mov edx, esi
call fcn.00403830
jmp 0x4f44dc
lea edx, [ebp - 0x8060]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
cmp word [eax + 0xa], 0
je 0x4f44dc
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
lea eax, [ebp - 0x58]
push eax
push esi
lea eax, [ebp - 0x8060]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4f44fb
cmp dword [ebp - 0x58], 0
ja 0x4f44b2
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 4]
call fcn.00405068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4526
mov eax, dword [ebp - 0x5c]
call fcn.004040e4
ret
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x806c]
call fcn.0040a28c
mov ecx, dword [ebp - 0x806c]
lea eax, [ebp - 0x8068]
mov edx, 0x4f47e4
call fcn.00405320
mov ecx, dword [ebp - 0x8068]
mov dl, 1
mov eax, dword [0x408d28]
call fcn.0040e9cc
call fcn.00404988
jmp 0x4f460f
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8074]
call fcn.0040a28c
mov ecx, dword [ebp - 0x8074]
lea eax, [ebp - 0x8070]
mov edx, 0x4f482c
call fcn.00405320
mov ecx, dword [ebp - 0x8070]
mov dl, 1
mov eax, dword [0x408d28]
call fcn.0040e9cc
call fcn.00404988
jmp 0x4f460f
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x807c]
call fcn.0040a28c
mov ecx, dword [ebp - 0x807c]
lea eax, [ebp - 0x8078]
mov edx, 0x4f4874
call fcn.00405320
mov ecx, dword [ebp - 0x8078]
mov dl, 1
mov eax, dword [0x408d28]
call fcn.0040e9cc
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f466e
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8084]
call fcn.0040a28c
mov ecx, dword [ebp - 0x8084]
lea eax, [ebp - 0x8080]
mov edx, 0x4f48bc
call fcn.00405320
mov ecx, dword [ebp - 0x8080]
mov dl, 1
mov eax, dword [0x408d28]
call fcn.0040e9cc
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f46cd
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x808c]
call fcn.0040a28c
mov ecx, dword [ebp - 0x808c]
lea eax, [ebp - 0x8088]
mov edx, 0x4f4904
call fcn.00405320
mov ecx, dword [ebp - 0x8088]
mov dl, 1
mov eax, dword [0x408d28]
call fcn.0040e9cc
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f46eb
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
ret