Function at 0x1004208b
Capabilities:
Connect to http server
Read data from internet
Receive data

Disassembly:
mov eax, 0x10216942
call fcn.10210210
mov eax, 0x1458
call fcn.101fc320
cmp dword [0x102b744c], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
jne 0x100420c5
call fcn.100418b1
cmp dword [0x102b744c], 0
jne 0x100420c5
xor al, al
jmp 0x10042508
lea ecx, [esp + 0x30]
call fcn.10002837
mov esi, dword [esp + 0x147c]
lea ecx, [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x1470], ebx
mov eax, dword [esi + 0xc]
add eax, 0xc
push eax
call fcn.1013521b
mov edi, dword [esp + 0x3c]
cmp dword [edi + 8], ebx
je 0x100424fd
xor ebp, ebp
lea eax, [esp + 0x18]
inc ebp
lea ecx, [esp + 0x30]
push ebp
push eax
call fcn.101361bc
mov edx, dword [esp + 0x60]
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x5c]
add edx, 0xc
push ebx
push 0x4400000
push 3
push edx
add eax, 0xc
push eax
push dword [esp + 0x54]
push ecx
push dword [0x102b744c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1470], 2
test ebx, ebx
je 0x100424f4
mov dword [esp + 0x1c], 0x102b8088
xor ebx, ebx
mov byte [esp + 0x1470], 3
mov edi, ebx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1004216f
mov eax, dword [eax - 4]
jmp 0x10042171
mov eax, ebx
cmp edi, eax
jge 0x10042260
mov eax, dword [esi + 0x2c]
push ebx
lea esi, [eax + edi*8]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.100025cc
mov byte [esp + 0x1470], 4
mov edx, dword [eax]
push ecx
add edx, 0xc
lea ecx, [esp + 0x14]
push ebp
call fcn.101355fe
pop ecx
pop ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1470], 6
call fcn.10002371
push 0x3d
lea ecx, [esp + 0x14]
call fcn.10002561
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 4]
call fcn.100025cc
mov byte [esp + 0x1470], 7
mov edx, dword [eax]
push ecx
add edx, 0xc
lea ecx, [esp + 0x28]
push ebp
call fcn.101355fe
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1474], 8
call fcn.1000251c
lea ecx, [esp + 0x24]
call fcn.10002371
lea ecx, [esp + 0x14]
mov byte [esp + 0x1470], 6
call fcn.10002371
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.1000251c
mov esi, dword [esp + 0x147c]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10042237
mov eax, dword [eax - 4]
jmp 0x10042239
mov eax, ebx
dec eax
cmp edi, eax
je 0x10042249
push 0x26
lea ecx, [esp + 0x20]
call fcn.10002561
lea ecx, [esp + 0x10]
mov byte [esp + 0x1470], 3
call fcn.10002371
inc edi
jmp 0x10042163
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp dword [esi + 0x28], ebp
jne 0x100422a0
cmp dword [edi + 8], 0
je 0x100422a0
push ecx
push 0x3f
lea ecx, [esp + 0x20]
call fcn.10133890
lea ecx, [esp + 0x18]
test eax, eax
jns 0x1004228b
push 0x3f
jmp 0x1004228d
push 0x26
call fcn.10002561
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.1000251c
xor ebp, ebp
cmp dword [esi + 0x28], 2
jne 0x100422ed
mov eax, dword [esi + 0x34]
test eax, eax
je 0x100422b4
mov eax, dword [eax - 4]
jmp 0x100422b6
mov eax, ebp
test eax, eax
je 0x100422ed
mov eax, dword [esi + 0x34]
test eax, eax
je 0x100422c6
mov eax, dword [eax - 4]
jmp 0x100422c8
mov eax, ebp
push eax
push dword [esi + 0x34]
lea ecx, [esp + 0x1c]
call fcn.100023d5
lea ecx, [esp + 0x1c]
push dword [eax]
call fcn.10132f35
lea ecx, [esp + 0x14]
call fcn.10002371
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ebp
add esi, 0xc
call fcn.10041292
mov ecx, dword [esp + 0x1480]
or eax, 0x4400040
push eax
push 0x102ae67c
push 0x10243426
push str.HTTP_1.0
push esi
call fcn.1004126b
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [esp + 0x24], esi
mov byte [esp + 0x1470], 9
test esi, esi
jne 0x1004236c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x24], 0x400
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x100424d7
mov eax, dword [esp + 0x147c]
cmp dword [eax + 0x28], 1
jne 0x1004239d
push dword [edi + 8]
mov eax, dword [eax + 0x30]
add edi, 0xc
push edi
mov ecx, esi
push dword [eax + 8]
lea edx, [eax + 0xc]
call fcn.100411bf
add esp, 0xc
test eax, eax
jne 0x10042442
jmp 0x10042361
mov dword [esp + 0x10], 0x102b8088
add eax, 0x38
mov byte [esp + 0x1470], 0xa
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov eax, dword [eax]
cmp dword [eax + 8], ebp
je 0x100423c7
push eax
call fcn.10132f35
jmp 0x100423d1
push str.Content_Type:_application_x_www_form_urlencoded_charsetutf_8
call fcn.1000243e
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push eax
call fcn.10132ec5
mov eax, dword [esp + 0x147c]
xor ebp, ebp
add eax, 0x30
mov dword [esp + 0x14], eax
mov eax, dword [eax]
cmp dword [eax + 8], ebp
je 0x10042410
push 0x1025a344
lea ecx, [esp + 0x14]
call fcn.10040be2
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
call fcn.1000251c
push dword [edi + 8]
mov eax, dword [esp + 0x14]
add edi, 0xc
push edi
mov ecx, esi
push dword [eax + 8]
lea edx, [eax + 0xc]
call fcn.100411bf
add esp, 0xc
lea ecx, [esp + 0x10]
test eax, eax
jne 0x1004243d
call fcn.10002371
jmp 0x10042361
call fcn.10002371
mov edi, dword [esp + 0x147c]
lea eax, [edi + 0x34]
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1004245b
mov ecx, dword [ecx - 4]
jmp 0x1004245d
mov ecx, ebp
cmp ecx, 0x2000000
jge 0x100424c1
mov eax, dword [esp + 0x28]
cmp byte [eax + 8], 0
je 0x10042361
lea eax, [esp + 0x10]
push eax
push 0x1000
lea eax, [esp + 0x46c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100424b4
cmp dword [esp + 0x10], 0
je 0x100424b0
push dword [esp + 0x10]
lea eax, [esp + 0x468]
push eax
lea ecx, [edi + 0x34]
call fcn.10010936
lea eax, [edi + 0x34]
jmp 0x10042450
mov eax, ebp
jmp 0x100424ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x100424cc
mov eax, dword [eax - 4]
jmp 0x100424ce
xor eax, eax
test eax, eax
setg al
mov byte [esp + 0x10], al
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x100424e4
push esi
call edi
lea ecx, [esp + 0x1c]
call fcn.10002371
push ebx
call edi
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.10002371
lea ecx, [esp + 0x30]
call fcn.10002867
mov al, bl
mov ecx, dword [esp + 0x1468]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 4