Function at 0x414350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507d4c
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
test byte [0x54b1c0], 1
mov dword [ebp - 0x478], ebx
jne 0x4143be
or dword [0x54b1c0], 1
xor eax, eax
push 0x50fe50
mov dword [0x54b1b8], 7
mov dword [0x54b1b4], ebx
mov word [0x54b1a4], ax
call fcn.004bb85d
add esp, 4
cmp dword [0x54b1b4], ebx
jne 0x4145c8
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004bad00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x43c], dx
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414430
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004021e0
push 0xa
push 0xffffffffffffffff
push 0x511ea4
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], ebx
call fcn.00404800
mov esi, 8
cmp eax, 0xffffffff
je 0x4144f8
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4144f8
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x458]
call fcn.00402890
push 0x11
push 0x511e80
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401600
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401500
mov byte [ebp - 4], bl
cmp dword [ebp - 0x444], esi
jb 0x4144f8
mov edx, dword [ebp - 0x458]
push edx
call fcn.004b9d66
add esp, 4
push 1
xor eax, eax
push 0x511e7c
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], ax
call fcn.004021e0
push 0x511420
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x458]
push edx
mov byte [ebp - 4], 2
call fcn.00401890
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
call fcn.004013f0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x54b1a4
call fcn.00401500
cmp dword [ebp - 0x444], esi
jb 0x41457a
mov eax, dword [ebp - 0x458]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], cx
cmp dword [ebp - 0x460], esi
jb 0x4145aa
mov edx, dword [ebp - 0x474]
push edx
call fcn.004b9d66
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], esi
jb 0x4145c8
mov eax, dword [ebp - 0x43c]
push eax
call fcn.004b9d66
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], cx
push 0x54b1a4
mov ecx, edi
call fcn.00401500
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret 4