Function at 0x10059b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009612f
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 0x10
jb 0x10059b91
mov eax, dword [esi]
jmp 0x10059b93
mov eax, esi
push 0x5c
push eax
call fcn.100648b0
add esp, 8
lea ecx, [ebp - 0x31c]
inc eax
push 0x100
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edx, ebx
lea ecx, [ebp - 0x31c]
call fcn.1004c440
add esp, 4
test eax, eax
jne 0x10059e6a
mov dword [ebp - 0x380], eax
mov eax, dword [0x100daa5c]
test eax, eax
jne 0x10059c15
push 0xd4
call fcn.10062ca1
add esp, 4
mov dword [ebp - 0x384], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10059c07
mov ecx, eax
call fcn.10054600
jmp 0x10059c09
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x100daa5c], eax
sub esp, 8
mov ecx, eax
call fcn.10054ec0
add esp, 4
lea ecx, [ebp - 0x37c]
mov edx, eax
call fcn.10059e90
add esp, 4
push esi
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x334]
call fcn.10059f40
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x368], 0x10
jb 0x10059c65
push dword [ebp - 0x37c]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x320], 0x10
lea eax, [ebp - 0x334]
push 0
cmovae eax, dword [ebp - 0x334]
push eax
mov dword [ebp - 0x368], 0xf
mov dword [ebp - 0x36c], 0
mov byte [ebp - 0x37c], 0
call fcn.10064125
add esp, 8
test eax, eax
je 0x10059dbc
push 0x410
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x11c], 0
mov dword [ebp - 0x338], 0xf
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
jne 0x10059ce1
xor ecx, ecx
jmp 0x10059cf9
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059cf0
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x34c]
call fcn.1004a060
push str.Fontsmsyh.ttf
lea edx, [ebp - 0x34c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x364]
call fcn.100537e0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x334]
cmp eax, esi
je 0x10059d73
cmp dword [ebp - 0x320], 0x10
jb 0x10059d4c
push dword [ebp - 0x334]
call fcn.1000a3a0
add esp, 4
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
mov byte [ebp - 0x334], 0
call fcn.100516e0
cmp dword [ebp - 0x350], 0x10
jb 0x10059d8a
push dword [ebp - 0x364]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x338], 0x10
mov dword [ebp - 0x350], 0xf
mov dword [ebp - 0x354], 0
mov byte [ebp - 0x364], 0
jb 0x10059dbc
push dword [ebp - 0x34c]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x320], 0x10
lea eax, [ebp - 0x334]
push 0x100c67c8
cmovae eax, dword [ebp - 0x334]
push eax
lea eax, [ebp - 0x380]
push eax
call fcn.100632d7
mov eax, dword [ebp - 0x380]
add esp, 0xc
test eax, eax
je 0x10059e4f
push 2
push 0
push eax
call fcn.10063c48
add esp, 0xc
push dword [ebp - 0x380]
call fcn.10063b4d
add esp, 4
mov dword [edi], eax
push 0
push 0
push dword [ebp - 0x380]
call fcn.10063c48
add esp, 0xc
push dword [edi]
call fcn.1006305d
add esp, 4
mov ecx, eax
mov dword [ebx], ecx
mov eax, dword [edi]
push dword [ebp - 0x380]
push eax
push 1
push eax
push ecx
call fcn.100634fc
add esp, 0x14
push dword [ebp - 0x380]
call fcn.10063d37
add esp, 4
cmp dword [ebp - 0x320], 0x10
jb 0x10059e66
push dword [ebp - 0x334]
call fcn.1000a3a0
add esp, 4
xor eax, eax
jmp 0x10059e6f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006249d
mov esp, ebp
pop ebp
ret 0xc