Function at 0x4078c9
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, 0x4d2972
test eax, eax
je 0x407903
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043c6f1
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 0x407914
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [0x5001b0]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
je 0x407d9e
mov ebx, dword [0x5001b0]
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.0040106f
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40796c
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [0x5001b0]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.127.0.0.1:
mov ecx, 2
call fcn.0040106f
add esp, 8
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004060b6
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4079bc
mov eax, 0x4d289d
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, 0x43dc20
call fcn.0043c703
add esp, 0x4c
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4079fa
push ebx
call fcn.0043c709
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407a0e
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [0x5001b0]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.riot:
mov ecx, 2
call fcn.0040106f
add esp, 8
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407a4b
mov eax, 0x4d289d
push eax
push 1
mov ebx, 0x43dfa0
call fcn.0043c703
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407a71
push ebx
call fcn.0043c709
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00407df5
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407a8d
push ebx
call fcn.0043c709
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004060b6
push VariantClear
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x407ab6
mov eax, 0x4d289d
push eax
push VariantClear
push 0
push str._Authorization_
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x407ad6
mov eax, 0x4d289d
push eax
push 6
mov ebx, 0x43dc20
call fcn.0043c703
add esp, 0x4c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407afc
push ebx
call fcn.0043c709
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407b10
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 8
jne 0x407c02
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.00408af9
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407ba5
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407bb5
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407bc5
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x407bd5
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407be5
push ebx
call fcn.0043c709
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407bf9
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x407d9e
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.0043c6f1
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.00409ea6
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x407d03
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x407d13
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x407d23
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x407d33
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x407d43
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x407d53
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407d63
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x440860
call fcn.0043c703
add esp, 0x10
call fcn.0043c709
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407d9a
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x407db8
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043c6f1
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x407dbd
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407dce
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407dde
push ebx
call fcn.0043c709
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407dee
push ebx
call fcn.0043c709
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10