Function at 0x4128a0
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe5c
mov eax, dword [0x452504]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x6160]
push str.realsingle:__
push esi
mov dword [esp + 0xe6c], eax
mov dword [esp + 0x18], edi
call fcn.00405090
add esp, 8
test eax, eax
je 0x4128f9
push eax
mov ecx, edi
call fcn.0040fc60
mov eax, 1
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x24]
push eax
lea ebx, [edi + 0x6961]
push ebx
push str.hangame:__
push esi
mov dword [esp + 0x34], 0x800
call fcn.00405090
add esp, 8
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x41294a
push 0x30002
call fcn.0041a6e0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4481cc]
mov ecx, dword [str.http:__]
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412965
sub eax, edx
mov esi, eax
push esi
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00435f00
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + esi + 0x50], 0
call fcn.00436fb0
add esp, 0x18
test eax, eax
je 0x412a46
mov dl, byte [0x4481c6]
xor eax, eax
mov word [esp + 0x658], 0
mov ecx, 0x1ff
lea edi, [esp + 0x65a]
rep stosd dword es:[edi], eax
mov cx, word [0x4481c4]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.http__]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov byte [esp + 0x36], dl
mov word [esp + 0x34], cx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4129e0
sub eax, edx
mov esi, eax
push 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x660]
push ecx
call fcn.00435f00
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412a07
sub eax, edx
mov edx, dword [esp + 0x10]
sub eax, esi
push eax
lea eax, [esi + edx + 0x6961]
push eax
lea ecx, [esp + 0x660]
push ecx
call fcn.00435dc0
push 0x801
lea edx, [esp + 0x668]
push edx
push ebx
call fcn.00435f00
mov edi, dword [esp + 0x28]
add esp, 0x18
call fcn.0041a4b0
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
jne 0x412a7d
push eax
push 0xf2
push 0x30003
call fcn.0041a7d0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0x20]
push eax
push 6
push esi
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0x84000000
push 0
push 0
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
jne 0x412b22
mov dword [esp + 0x30], 0x104
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14c]
mov edi, eax
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
mov ecx, dword [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x48]
push str._d__d
push edx
call fcn.004352bf
lea eax, [esp + 0x50]
push eax
push 0xf3
push 0x30004
call fcn.0041a7d0
add esp, 0x1c
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x20000013
push ebx
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x14], 0xc8
je 0x412bb4
push 0xff
lea eax, [esp + 0x14c]
push eax
push 0xc7
call fcn.0041a480
mov ecx, dword [esp + 0x20]
push str.game_string
push ecx
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004352bf
push 0
lea ecx, [esp + 0x60]
push ecx
push 0x30004
call fcn.0041a8e0
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x28
push ebx
call edi
push esi
call edi
xor eax, eax
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x258]
push eax
lea ebx, [edi + 0x7162]
push ecx
mov byte [ebx], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x412c92
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412c92
mov byte [esp + eax + 0x250], 0
mov eax, ebx
lea edx, [eax + 1]
jmp 0x412c00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412c00
sub eax, edx
mov edx, eax
lea eax, [esp + 0x250]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412c15
sub eax, esi
add eax, edx
cmp eax, 0x1000
ja 0x412cd9
lea eax, [esp + 0x250]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412c34
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x412c40
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [edx], 0
mov edx, dword [esp + 0x28]
jne 0x412d16
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
jne 0x412be2
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call ebx
push esi
call ebx
lea eax, [edi + 0x6160]
push 0x446780
push eax
call fcn.00436190
add esp, 8
test eax, eax
je 0x412cc1
mov ecx, edi
call fcn.00412540
mov eax, 1
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0xb2
push 0xd0001
call fcn.0041a7d0
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
xor eax, eax
mov ecx, dword [esp + 0xe64]
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0xe64]
xor eax, eax
call fcn.00435083
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret