Function at 0x411d94
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x41207b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00411a24
push ebp
call fcn.00411aa8
pop ecx
test al, al
jne 0x411de8
mov dword [ebp - 0x28], 0xffffffff
jmp 0x412043
cmp dword [0x437cbc], 0
jne 0x411e0f
push 0
push 0x41208c
push 0x41208c
push 1
mov eax, dword [0x42cf34]
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x34], eax
jmp 0x411e2b
push 0
push 0x41208c
push 0x41208c
push 1
mov eax, dword [0x42cf34]
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x411e3e
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
jmp 0x412043
cmp dword [0x42cf38], 0
jle 0x411e59
push 4
push 0x42cf38
push 6
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionW
push 4
push 0x42cf30
push 0x41
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp dword [ebp - 0x1c], 0
jne 0x411e92
mov edx, 0x41209c
mov eax, dword [ebp - 4]
call fcn.0040a028
test al, al
je 0x411e8a
mov word [ebp - 0x3e], 0x50
jmp 0x411ea0
mov word [ebp - 0x3e], 0x1bb
jmp 0x411ea0
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0040a40c
mov word [ebp - 0x3e], ax
push 0
push 0x4080000
push 3
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ax, word [ebp - 0x3e]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x412032
mov dword [ebp - 0x2c], 0x4080000
mov edx, 0x4120b4
mov eax, dword [ebp - 4]
call fcn.0040a028
test al, al
je 0x411eef
or dword [ebp - 0x2c], 0x800000
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x41208c
push 0x4120c0
mov eax, dword [ebp - 0x18]
push eax
push 0x4120c8
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x41201f
push 4
push 0x42cf30
push 0x4d
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetSetOptionW
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0x2c
push 0x4120d4
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
je 0x41200c
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
call fcn.004048d0
lea eax, [ebp - 0x44]
call fcn.00409ca0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x8000
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x48]
cdq
cmp edx, dword [esp + 4]
jne 0x411f93
cmp eax, dword [esp]
pop edx
pop eax
jae 0x411fc2
jmp 0x411f97
pop edx
pop eax
jge 0x411fc2
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
call fcn.004048d0
lea eax, [ebp - 0x4c]
call fcn.00409ca0
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
add edx, 0x400000
mov eax, dword [ebp - 0x20]
xor ecx, ecx
call fcn.00404d6c
lea eax, [ebp - 0x30]
push eax
push 0x8000
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x2c]
add eax, edx
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x411fed
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
jmp 0x411ffd
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], 0
jne 0x411f5c
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.00404d6c
jmp 0x412014
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x412027
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x41203a
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412082
lea eax, [ebp - 0x4c]
call fcn.00404820
lea eax, [ebp - 0x44]
call fcn.00404820
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004050c0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004050c0
ret