Function at 0x414150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d38c
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x58d038]
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 [0x5903a0], 1
mov dword [ebp - 0x478], ebx
jne 0x4141be
or dword [0x5903a0], 1
xor eax, eax
push 0x548b70
mov dword [0x590398], 7
mov dword [0x590394], ebx
mov word [0x590384], ax
call fcn.00481a9d
add esp, 4
cmp dword [0x590394], ebx
jne 0x4143c8
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.00480280
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 0x414230
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401b70
push 0xa
push 0xffffffffffffffff
push 0x54bfbc
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], ebx
call fcn.00403f10
mov esi, 8
cmp eax, 0xffffffff
je 0x4142f8
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.00480280
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 0x4142f8
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x458]
call fcn.00401fd0
push 0x11
push 0x54bf98
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004044f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401a70
mov byte [ebp - 4], bl
cmp dword [ebp - 0x444], esi
jb 0x4142f8
mov edx, dword [ebp - 0x458]
push edx
call fcn.00480102
add esp, 4
push 1
xor eax, eax
push 0x54bf94
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], ax
call fcn.00401b70
push 0x54b540
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x458]
push edx
mov byte [ebp - 4], 2
call fcn.00404e30
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
call fcn.004043e0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x590384
call fcn.00401a70
cmp dword [ebp - 0x444], esi
jb 0x41437a
mov eax, dword [ebp - 0x458]
push eax
call fcn.00480102
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 0x4143aa
mov edx, dword [ebp - 0x474]
push edx
call fcn.00480102
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], esi
jb 0x4143c8
mov eax, dword [ebp - 0x43c]
push eax
call fcn.00480102
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 0x590384
mov ecx, edi
call fcn.00401a70
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.00480264
mov esp, ebp
pop ebp
ret 4