Function at 0x4346a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4733d7
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4a3dc0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3dc0]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1ac]
xor ebx, ebx
push 0x104
lea eax, [esp + 0x98]
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004547c0
add esp, 0xc
lea ecx, [esp + 0x94]
push ecx
push ebx
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, eax
cmp esi, ebx
je 0x4348ad
push 3
call fcn.00434cf0
mov ecx, eax
call fcn.00434d00
test al, al
je 0x434880
lea edx, [esp + 0x78]
push esi
push edx
call fcn.00435370
add esp, 8
mov esi, eax
push 0xd
push str.getWindowsDir
lea ecx, [esp + 0x48]
mov dword [esp + 0x1ac], ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.004042b0
mov ebp, 0x10
mov byte [esp + 0x1a4], 1
cmp dword [esi + 0x14], ebp
jb 0x43477c
mov esi, dword [esi]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x43478a
lea eax, [esp + 0x40]
push esi
push eax
lea eax, [esp + 0x64]
push 0x48c588
push eax
call fcn.00437960
add esp, 0x10
mov byte [esp + 0x1a4], 2
cmp dword [eax + 0x14], ebp
jb 0x4347af
mov esi, dword [eax]
jmp 0x4347b1
mov esi, eax
call fcn.00434cf0
mov edi, eax
mov eax, esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4347d0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.004042b0
lea ecx, [esp + 0x24]
push ecx
push str.SysInfo::getWindowsDir
push 0xd4
push 0x48c5d0
push 3
mov ecx, edi
mov byte [esp + 0x1b8], 3
call fcn.00434dd0
cmp dword [esp + 0x38], ebp
jb 0x43481c
mov edx, dword [esp + 0x24]
push edx
call fcn.004533ae
add esp, 4
cmp dword [esp + 0x70], ebp
jb 0x43482f
mov eax, dword [esp + 0x5c]
push eax
call fcn.004533ae
add esp, 4
mov esi, 0xf
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x54], ebp
jb 0x434853
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004533ae
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x1a4], 0xffffffff
cmp dword [esp + 0x8c], ebp
jb 0x434880
mov edx, dword [esp + 0x78]
push edx
call fcn.004533ae
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], str.SHGetFolderPath_CSIDL_WINDOWS__failed
call fcn.00453b7a
push 0x498d24
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.std::runtime_error.0
call fcn.00453ce8
lea eax, [esp + 0x94]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4348c7
sub eax, edx
push eax
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x2c]
call fcn.004042b0
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x1ac], 4
call fcn.00439370
add esp, 8
cmp dword [esp + 0x38], 0x10
jb 0x43490f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004533ae
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0045407e
add esp, 0x194
ret