Function at 0x408ff2
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, 0x4d08e2
test eax, eax
je 0x40902c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043a208
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40903d
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [0x4fe1a8]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
je 0x4094c7
mov ebx, dword [0x4fe1a8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.https:__127.0.0.1:
mov ecx, 3
call fcn.0040453f
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409095
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [0x4fe1a8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.127.0.0.1:
mov ecx, 2
call fcn.0040453f
add esp, 8
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004074ea
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4090e5
mov eax, 0x4d081e
push eax
push VariantClear
push 0
push str._Host_
push VariantClear
push 0
push str.Host:__Host__r_nContent_Type:_application_json_r_nConnection:_Keep_Alive_r_nAccept_Language:_en_US_en_q0.9_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__RiotClient_57.0.0__CEF_74__Safari_537.36_r_nAuthorization:_Basic__Authorization__r_nReferer:_https:___Host__index.html
push 6
mov ebx, 0x43b610
call fcn.0043a21a
add esp, 0x4c
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x409123
push ebx
call fcn.0043a220
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x409137
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [0x4fe1a8]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.riot:
mov ecx, 2
call fcn.0040453f
add esp, 8
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409174
mov eax, 0x4d081e
push eax
push 1
mov ebx, 0x43b990
call fcn.0043a21a
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40919a
push ebx
call fcn.0043a220
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.0040951e
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4091b6
push ebx
call fcn.0043a220
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004074ea
push VariantClear
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4091df
mov eax, 0x4d081e
push eax
push VariantClear
push 0
push str._Authorization_
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4091ff
mov eax, 0x4d081e
push eax
push 6
mov ebx, 0x43b610
call fcn.0043a21a
add esp, 0x4c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409225
push ebx
call fcn.0043a220
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x409239
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 8
jne 0x40932b
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 1
push 5
lea eax, [ebp - 8]
push eax
call fcn.0040a222
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4092ce
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4092de
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4092ee
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4092fe
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40930e
push ebx
call fcn.0043a220
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409322
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4094c7
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 8
call fcn.0043a208
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp + 0x10]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0040b5cf
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40942c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40943c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40944c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40945c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40946c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40947c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40948c
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x43e2b0
call fcn.0043a21a
add esp, 0x10
call fcn.0043a220
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4094c3
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4094e1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043a208
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4094e6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4094f7
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409507
push ebx
call fcn.0043a220
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x409517
push ebx
call fcn.0043a220
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10