Function at 0x518710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5381f0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x57a2c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x518753
xor eax, eax
jmp 0x518b3a
mov byte [ebp - 0x1c], 0x53
mov byte [ebp - 0x1b], 0x79
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x6d
mov byte [ebp - 0x16], 0x52
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00404c5f
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
call fcn.0040648d
mov dword [ebp - 0x60], eax
push 0
push 0x6b
push str.minkernelcrtsucrt_srcdesktopcrtexeccenvarg.cpp
push 0x565448
push str.traits::tdupenv_s_crt_system_root_value.get_address_of____nullptr__system_root_name_
push 0x16
push 0x16
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00405cea
add esp, 0xc
push eax
call fcn.00402982
add esp, 0x20
test eax, eax
je 0x5187ed
call fcn.00403c74
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x28]
call fcn.00401bcc
mov eax, dword [ebp - 0x64]
jmp 0x518b3a
lea ecx, [ebp - 0x28]
call fcn.00404d90
movzx edx, al
test edx, edx
je 0x51881b
lea ecx, [ebp - 0x28]
call fcn.0040352b
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00403df0
add esp, 4
add eax, 1
mov dword [ebp - 0x48], eax
jmp 0x518822
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
add edx, 0xb
mov dword [ebp - 0x3c], edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00519580
mov ecx, eax
call fcn.00519760
mov dword [ebp - 0x4c], eax
call fcn.004047b4
push eax
lea ecx, [ebp - 0x40]
call fcn.00404c5f
lea ecx, [ebp - 0x40]
call fcn.00404d90
movzx ecx, al
test ecx, ecx
jne 0x518886
mov dword [ebp - 0x70], 0x16
lea ecx, [ebp - 0x40]
call fcn.00401bcc
lea ecx, [ebp - 0x28]
call fcn.00401bcc
mov eax, dword [ebp - 0x70]
jmp 0x518b3a
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x88]
call fcn.00519630
mov ecx, eax
call fcn.00519a00
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x8c]
call fcn.005196c0
mov ecx, eax
call fcn.00519be0
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.00519670
mov ecx, eax
call fcn.00519ad0
mov byte [ebp - 0x21], al
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
je 0x5188f1
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edx
jmp 0x5188fd
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
push 0xaa
push 0x565174
push 2
push 1
mov edx, dword [ebp - 0x54]
push edx
call fcn.004046ab
add esp, 0x14
push eax
lea ecx, [ebp - 0x30]
call fcn.00404c5f
lea ecx, [ebp - 0x30]
call fcn.00404d90
movzx eax, al
test eax, eax
jne 0x518971
push 0xe
call fcn.00404e5d
add esp, 4
call fcn.00403c74
mov dword [eax], 0xc
mov dword [ebp - 0x78], 0xc
lea ecx, [ebp - 0x30]
call fcn.00401bcc
lea ecx, [ebp - 0x40]
call fcn.00401bcc
lea ecx, [ebp - 0x28]
call fcn.00401bcc
mov eax, dword [ebp - 0x78]
jmp 0x518b3a
lea ecx, [ebp - 0x30]
call fcn.0040352b
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x2c], 0
je 0x5189ae
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00405b69
add esp, 0xc
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
jmp 0x5189bf
mov edx, dword [ebp - 0x34]
add edx, 4
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x518a20
push 0
push 0xc1
push str.minkernelcrtsucrt_srcdesktopcrtexeccenvarg.cpp
push 0x565448
push str.traits::tcscpy_s_result_it__remaining_characters__it_
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00401e10
add esp, 0xc
push eax
call fcn.00402590
add esp, 0x18
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00404354
add esp, 4
add eax, 1
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
jmp 0x5189b6
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
jne 0x518ae9
push 0
push 0xcd
push str.minkernelcrtsucrt_srcdesktopcrtexeccenvarg.cpp
push 0x565448
push str.traits::tcscpy_s_result_it__system_root_count__system_root_name_
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040286a
add esp, 0xc
push eax
call fcn.00402590
add esp, 0x18
push 0
push 0xce
push str.minkernelcrtsucrt_srcdesktopcrtexeccenvarg.cpp
push 0x565448
push str.traits::tcscat_s_result_it__system_root_count__equal_sign_
push 0x565444
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00401c67
add esp, 0xc
push eax
call fcn.00402590
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00404d90
movzx ecx, al
test ecx, ecx
je 0x518ae0
lea ecx, [ebp - 0x28]
call fcn.0040352b
mov dword [ebp - 0x7c], eax
push 0
push 0xd1
push str.minkernelcrtsucrt_srcdesktopcrtexeccenvarg.cpp
push 0x565448
push str.traits::tcscat_s_result_it__system_root_count__system_root_value.get___
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00403eea
add esp, 0xc
push eax
call fcn.00402590
add esp, 0x18
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x30]
call fcn.0040352b
cmp dword [ebp - 0x20], eax
jne 0x518b05
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
lea ecx, [ebp - 0x30]
call fcn.00401c62
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x30]
call fcn.00401bcc
lea ecx, [ebp - 0x40]
call fcn.00401bcc
lea ecx, [ebp - 0x28]
call fcn.00401bcc
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040327e
mov esp, ebp
pop ebp
ret