Function at 0x404219
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0x8c
mov eax, 0x46479e
call fcn.00460433
xor ebx, ebx
mov esi, str.http:__toparcadehits.com
mov dword [ebp - 0x28], ebx
mov edx, esi
mov dword [ebp - 0x1c], ebx
push 7
pop ecx
mov edi, str.http:__
xor eax, eax
mov dword [ebp - 4], 1
repe cmpsb byte [esi], byte es:[edi]
je 0x404251
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40425a
mov edx, 0x46b6fb
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00405849
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00405849
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x40]
push 0x50
mov dword [ebp - 0x68], eax
pop eax
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x78], str.http
mov dword [ebp - 0x74], 4
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], ebx
call esi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045010c
mov edi, eax
pop ecx
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x40454c
push ebx
call fcn.00450117
pop ecx
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x1c], edi
call esi
test eax, eax
je 0x40454c
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
je 0x404330
call fcn.00401000
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
cmp esi, ebx
je 0x404340
call fcn.00401000
lea esi, [ebp - 0x94]
call fcn.00401310
lea eax, [ebp - 0x30]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00405800
mov esi, eax
lea eax, [ebp - 0x3c]
push 0x46b80c
push eax
mov byte [ebp - 4], 5
call fcn.00405800
add esp, 0x10
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, fcn.004040bf
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x4044ff
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404390
sub eax, edx
sar eax, 1
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045010c
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x4043c8
push ebx
jmp 0x4044f9
lea eax, [esi + esi + 2]
sar eax, 1
add eax, eax
push eax
push dword [ebp - 0x24]
push edi
call fcn.00450430
push 0x34
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x78], ebx
call fcn.00456240
or eax, 0xffffffff
add esp, 0x18
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x404419
push edi
jmp 0x4044f9
push ebx
push ebx
push ebx
push ebx
push str.zz_tah_1.1.1149
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x404413
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
lea eax, [ecx + eax*2]
movzx esi, word [eax]
push ebx
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x98], edi
cmp edi, ebx
jne 0x40446a
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4044f6
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
push 0x1c0
mov word [ecx + eax*2], si
lea eax, [ebp - 0x88]
push eax
push ebx
push ebx
push dword [ebp - 0x50]
mov dword [ebp - 0x88], 0x46b804
push dword [ebp - 0x20]
mov dword [ebp - 0x84], ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 0xa
cmp esi, ebx
jne 0x4044b4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4044ee
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4044e5
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4044e5
lea eax, [ebp - 0x94]
push eax
push 0x64
push esi
call fcn.004040bf
add esp, 0xc
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call fcn.00450117
pop ecx
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x38]
cmp esi, ebx
je 0x40450f
call fcn.00401000
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
je 0x40451f
call fcn.00401000
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x94]
call fcn.00401325
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x28], 1
cmp esi, ebx
je 0x404547
call fcn.00401000
push dword [ebp - 0x24]
jmp 0x40457e
mov esi, dword [ebp + 8]
call fcn.00401310
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 1
cmp esi, ebx
je 0x40456b
call fcn.00401000
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
cmp esi, ebx
je 0x40457b
call fcn.00401000
push dword [ebp - 0x1c]
call fcn.00450117
mov eax, dword [ebp + 8]
pop ecx
call fcn.004604d2
ret