Function at 0x405600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c026
mov eax, dword fs:[0]
push eax
sub esp, 0x564
mov eax, dword [0x43a680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405670
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00401a50
push 0xb
push str.SHCore.dll
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
call fcn.00402b00
cmp dword [ebp - 0x118], 0xf
lea edi, [ebp - 0x12c]
mov esi, dword [ebp - 0x11c]
xorps xmm0, xmm0
cmova edi, dword [ebp - 0x12c]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
movups xmmword [ebp - 0x144], xmm0
cmp esi, 0x7fffffff
ja 0x405902
mov dword [ebp - 0x130], 0xf
cmp esi, 0xf
ja 0x40570a
mov dword [ebp - 0x134], esi
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x144], xmm0
jmp 0x405766
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40571d
mov eax, 0x7fffffff
jmp 0x405727
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x570], eax
lea eax, [ebp - 0x570]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004019f0
mov ecx, dword [ebp - 0x570]
mov dword [ebp - 0x130], ecx
lea ecx, [esi + 1]
push ecx
push edi
push eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x134], esi
call fcn.004129d0
add esp, 0x14
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
call fcn.00410460
mov ecx, dword [ebp - 0x130]
add esp, 4
mov byte [ebp - 0x569], al
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x4057c3
mov edx, dword [ebp - 0x144]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4057b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405907
push ecx
push edx
call fcn.004118c3
mov al, byte [ebp - 0x569]
add esp, 8
test al, al
lea eax, [ebp - 0x12c]
je 0x405884
cmp dword [ebp - 0x118], 0xf
cmova eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4058b1
push str.SetProcessDpiAwareness
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40587b
push 2
call eax
test eax, eax
je 0x40587b
lea ecx, [ebp - 0x548]
mov dword [ebp - 0x568], 1
mov dword [ebp - 0x564], str.C:BuildAgent_work1_s_agent_rcapi_sourcekvm_sourcewin32_rckvm_process.cpp
mov dword [ebp - 0x560], 0x18d
mov dword [ebp - 0x55c], str.Process
mov dword [ebp - 0x558], ecx
mov byte [ebp - 0x554], 0
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x550], 0x400
push eax
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 2
push str.SetProcessDpiAwareness__Process_Per_Monitor__failed:__x
push eax
call fcn.00410070
add esp, 0xc
lea ecx, [ebp - 0x568]
call fcn.00410000
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4058b1
cmp dword [ebp - 0x118], 0xf
cmova eax, dword [ebp - 0x12c]
push eax
push str.Failed_to_make_process_DPIAware_unable_to_load__s
push str.Process
push 0x195
push str.C:BuildAgent_work1_s_agent_rcapi_sourcekvm_sourcewin32_rckvm_process.cpp
push 1
call fcn.00405350
add esp, 0x18
mov ecx, dword [ebp - 0x118]
cmp ecx, 0xf
jbe 0x4058e7
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4058dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40590c
push ecx
push edx
call fcn.004118c3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004118d1
mov esp, ebp
pop ebp
ret
call fcn.00402af0
call fcn.0041672f
call fcn.0041672f
int3