Function at 0x4bd65c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2016
push 0
push 0
dec ecx
jne 0x4bd664
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4be1da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4be1f4
mov eax, dword [ebp - 0x14]
call fcn.004be574
lea eax, [ebp - 8]
call fcn.00405a28
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4be0ce
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4bdf40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [0x4d888c]
call fcn.00405c10
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
setne al
call fcn.004bcfa8
mov edx, 0x4be220
mov eax, dword [ebp - 0x14]
call fcn.004be574
push 4
push 0x4d8890
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004bcfa8
push 4
push 0x4d8890
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004bcfa8
push 4
push 0x4d8890
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004bcfa8
xor eax, eax
mov dword [ebp - 0x30], eax
push 0x4001
push 0x80000000
push 0
mov eax, dword [ebp - 0x30]
call fcn.00425d4c
call fcn.00403434
push edx
push eax
mov eax, 0x10000
xor edx, edx
call fcn.004064d4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
jne 0x4bd793
cmp dword [ebp - 0x40], 0x400
jae 0x4bd7a5
jmp 0x4bd795
jge 0x4bd7a5
mov dword [ebp - 0x48], 0x400
mov dword [ebp - 0x44], 0
jmp 0x4bd7b1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x10050]
mov eax, dword [ebp - 0x34]
call fcn.0040a168
mov ecx, dword [ebp - 0x10050]
lea eax, [ebp - 0x1004c]
mov edx, 0x4be258
call fcn.004054c4
mov edx, dword [ebp - 0x1004c]
mov eax, dword [ebp - 0x14]
call fcn.004be574
cmp dword [ebp - 0x30], 0
jbe 0x4bd825
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10058]
call fcn.0040a338
mov ecx, dword [ebp - 0x10058]
lea eax, [ebp - 0x10054]
mov edx, 0x4be290
call fcn.004054c4
mov edx, dword [ebp - 0x10054]
mov eax, dword [ebp - 0x14]
call fcn.004be574
mov eax, dword [0x4d8abc]
mov dword [eax], 0xfffffff7
xor eax, eax
push ebp
push 0x4bdeaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
push 0x4080b00
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00405c10
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
call fcn.00405c10
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x44]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 8]
cmp al, 1
je 0x4bd892
call fcn.00404ba4
call fcn.00404ba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4be122
cmp dword [ebp - 0x1c], 0
jne 0x4bd972
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2efd
jne 0x4bd972
mov edx, 0x4be2b8
mov eax, dword [ebp - 0x14]
call fcn.004be574
cmp dword [ebp - 0x18], 0
je 0x4bd8c8
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
push 0
push 0
push 0
push 1
mov eax, dword [0x4d888c]
call fcn.00405c10
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
setne al
call fcn.004bcfa8
push 4
push 0x4d8890
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004bcfa8
push 4
push 0x4d8890
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004bcfa8
push 4
push 0x4d8890
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004bcfa8
mov eax, dword [ebp - 0x24]
push eax
push 0x4080b00
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00405c10
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
call fcn.00405c10
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
setne al
call fcn.004bcfa8
mov edx, 0x4be2f0
mov eax, dword [ebp - 0x14]
call fcn.004be574
xor esi, esi
lea ecx, [ebp - 0x10060]
mov edx, 0x13
mov eax, dword [ebp - 0x1c]
call fcn.004bcfc0
mov edx, dword [ebp - 0x10060]
lea eax, [ebp - 0x1005c]
call fcn.00405434
mov eax, dword [ebp - 0x1005c]
or edx, 0xffffffff
call fcn.0040a3c4
mov ebx, eax
inc esi
mov eax, ebx
not eax
sub eax, 0xc8
je 0x4bd9d2
sub eax, 6
jne 0x4bd9dc
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov eax, ebx
sub eax, 0xc8
je 0x4bd9ef
sub eax, 6
je 0x4bd9ef
cmp esi, 3
jb 0x4bd98d
mov eax, ebx
sub eax, 0xc8
je 0x4bda10
sub eax, 6
je 0x4bda10
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4bc3a8]
call fcn.004bce94
call fcn.00404af8
lea ecx, [ebp - 0x10068]
mov edx, 5
mov eax, dword [ebp - 0x1c]
call fcn.004bcfc0
mov edx, dword [ebp - 0x10068]
lea eax, [ebp - 0x10064]
call fcn.00405434
mov eax, dword [ebp - 0x10064]
or edx, 0xffffffff
call fcn.0040a3c4
mov ebx, eax
lea ecx, [ebp - 0xc]
mov edx, 0xb
mov eax, dword [ebp - 0x1c]
call fcn.004bcfc0
lea ecx, [ebp - 0x10]
mov edx, 0x36
mov eax, dword [ebp - 0x1c]
call fcn.004bcfc0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x58], ebx
mov eax, dword [ebp - 0x14]
push eax
push 0x4be51c
mov eax, dword [ebp - 0x14]
call fcn.00424820
mov eax, dword [0x4d8b0c]
cmp byte [eax], 0
jne 0x4bda9a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x64]
lea eax, [ebp - 4]
mov ecx, 0x4be328
call fcn.00405c8c
jmp 0x4bdae1
lea eax, [ebp - 0x10074]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x50]
call fcn.00405434
mov eax, dword [ebp - 0x10074]
lea edx, [ebp - 0x10070]
call fcn.004bc7b8
mov edx, dword [ebp - 0x10070]
lea eax, [ebp - 0x1006c]
call fcn.00405c00
mov ecx, dword [ebp - 0x1006c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x64]
lea eax, [ebp - 4]
call fcn.00405c8c
mov eax, dword [0x4d8b0c]
cmp byte [eax], 0
jne 0x4bdb9e
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405d44
je 0x4bdb9e
lea eax, [ebp - 0x10078]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x68]
call fcn.00405c00
mov edx, dword [ebp - 0x10078]
mov eax, dword [ebp - 0xc]
call fcn.00405d44
jne 0x4bdb9e
mov eax, dword [ebp - 0x14]
cmp ebx, dword [eax + 0x6c]
jne 0x4bdb9e
lea eax, [ebp - 0x1007c]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x70]
call fcn.00405c00
mov edx, dword [ebp - 0x1007c]
mov eax, dword [ebp - 0x10]
call fcn.00405d44
jne 0x4bdb9e
mov eax, dword [ebp - 4]
call fcn.004767a8
test al, al
je 0x4bdb9e
mov eax, dword [ebp - 4]
call fcn.004bc868
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x5c], esi
cmp esi, ebx
jne 0x4bdbc8
mov edx, dword [0x4d8fdc]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004c47e0
test al, al
je 0x4bdb94
call fcn.00404ba4
call fcn.00404ba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4be122
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 0x5c], edx
jmp 0x4bdbc8
mov eax, dword [ebp - 0x14]
add eax, 0x68
mov edx, dword [ebp - 0xc]
call fcn.00405434
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x6c], ebx
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov edx, dword [ebp - 0x10]
call fcn.00405434
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x5c], 0
jbe 0x4bdd9f
xor eax, eax
push ebp
push 0x4bdd47
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4be344
mov eax, dword [ebp - 0x14]
call fcn.004be574
push 0x11
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x473ba0]
call fcn.00474984
mov dword [ebp - 0x2c], eax
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x5c], ebx
lea eax, [ebp - 0x10080]
push eax
mov dword [ebp - 0x10088], ebx
mov byte [ebp - 0x10084], 0
lea edx, [ebp - 0x10088]
xor ecx, ecx
mov eax, 0x4be384
call fcn.0040b024
mov edx, dword [ebp - 0x10080]
lea eax, [ebp - 8]
call fcn.00405c00
mov eax, dword [ebp - 0x24]
push eax
push 0x4080b00
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00405c10
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
call fcn.00405c10
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
setne al
call fcn.004bcfa8
lea ecx, [ebp - 0x10090]
mov edx, 0x13
mov eax, dword [ebp - 0x20]
call fcn.004bcfc0
mov edx, dword [ebp - 0x10090]
lea eax, [ebp - 0x1008c]
call fcn.00405434
mov eax, dword [ebp - 0x1008c]
or edx, 0xffffffff
call fcn.0040a3c4
mov ebx, eax
sub ebx, 0xc8
je 0x4bdcd2
sub ebx, 6
je 0x4bdcd2
xor eax, eax
jmp 0x4bdcd4
mov al, 1
call fcn.004bcfa8
lea ecx, [ebp - 0x10098]
mov edx, 5
mov eax, dword [ebp - 0x20]
call fcn.004bcfc0
mov edx, dword [ebp - 0x10098]
lea eax, [ebp - 0x10094]
call fcn.00405434
mov eax, dword [ebp - 0x10094]
or edx, 0xffffffff
call fcn.0040a3c4
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x5c]
add eax, ebx
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 0x58]
sete al
call fcn.004bcfa8
cmp dword [ebp - 0x1c], 0
je 0x4bdd32
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bdd9f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x5c]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x54], eax
cmp dword [ebp - 0x2c], 0
jne 0x4bddc8
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x473ba0]
call fcn.00474984
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4bde8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4be3dc
mov eax, dword [ebp - 0x14]
call fcn.004be574
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x10048]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4bde12
call sub.kernel32.dll_GetLastError_1
mov edx, dword [0x4d8abc]
mov dword [edx], eax
test bl, bl
je 0x4bde4c
cmp dword [ebp - 0x28], 0
jbe 0x4bde3b
lea edx, [ebp - 0x10048]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
call fcn.0041df30
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add dword [eax + 0x5c], edx
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x4be51c
mov eax, dword [ebp - 0x14]
call fcn.00424820
cmp dword [ebp - 0x28], 0
je 0x4bde75
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x5c]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 0x58]
je 0x4bde75
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x44]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 8]
test al, al
jne 0x4bdde3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bde92
lea eax, [ebp - 0x2c]
call fcn.0040fe50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be1e4
lea eax, [ebp - 0x100b4]
mov edx, 7
call fcn.004051d0
lea eax, [ebp - 0x10098]
call fcn.00405a28
lea eax, [ebp - 0x10094]
call fcn.004051ac
lea eax, [ebp - 0x10090]
call fcn.00405a28
lea eax, [ebp - 0x1008c]
call fcn.004051ac
lea eax, [ebp - 0x10080]
call fcn.004051ac
lea eax, [ebp - 0x1007c]
mov edx, 2
call fcn.00405a40
lea eax, [ebp - 0x10074]
mov edx, 2
call fcn.004051d0
lea eax, [ebp - 0x1006c]
mov edx, 2
call fcn.00405a40
lea eax, [ebp - 0x10064]
call fcn.004051ac
lea eax, [ebp - 0x10060]
call fcn.00405a28
lea eax, [ebp - 0x1005c]
mov edx, 5
call fcn.004051d0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405a40
ret