Function at 0x1004a140
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x530]
sub esp, 0x530
push 0xffffffffffffffff
push 0x1012f72c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp + 0x52c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x538]
lea ecx, [ebp + 0xc8]
mov esi, dword [ebp + 0x53c]
mov ebx, dword [ebp + 0x540]
push eax
call fcn.10004af0
mov dword [ebp - 4], 0
mov edx, 0x1015a974
lea ecx, [ebp + 0xc8]
call fcn.10056d10
mov edx, 0x1015a974
lea ecx, [ebp + 0xc8]
call fcn.10056da0
lea ecx, [ebp + 0xe0]
call fcn.100056b0
mov byte [ebp - 4], 1
push ecx
push 0x5c
lea ecx, [ebp + 0xc8]
call fcn.10030d70
cmp eax, 0xffffffff
jne 0x1004a25e
push ecx
push 0x2f
lea ecx, [ebp + 0xc8]
call fcn.10030d70
cmp eax, 0xffffffff
jne 0x1004a25e
lea ecx, [ebp + 0xe0]
call fcn.10013fb0
push 0x412
lea eax, [ebp + 0x118]
push 0
push eax
call fcn.100fdf90
add esp, 0xc
lea eax, [ebp + 0x118]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1004a292
cmp eax, 0x208
jae 0x1004a292
xor eax, eax
mov word [ebp + 0x528], ax
lea eax, [ebp + 0x118]
push eax
call fcn.100058f0
add esp, 4
lea ecx, [ebp + 0xe0]
push eax
lea eax, [ebp + 0x118]
push eax
call fcn.10004c40
jmp 0x1004a292
push eax
push 0
lea eax, [ebp + 0xb0]
push eax
lea ecx, [ebp + 0xc8]
call fcn.1000e140
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xe0]
push eax
call fcn.10005630
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xb0]
call fcn.10004ae0
lea ecx, [ebp + 0xe0]
call fcn.10005620
test al, al
jne 0x1004a5f4
mov ecx, esi
call fcn.10005620
test al, al
jne 0x1004a5f4
mov ecx, ebx
call fcn.10005620
test al, al
jne 0x1004a5f4
push esi
lea ecx, [ebp + 0x80]
call fcn.10004af0
mov byte [ebp - 4], 3
mov edx, 0x1015a974
lea ecx, [ebp + 0x80]
call fcn.10056d10
mov edx, 0x1015a974
lea ecx, [ebp + 0x80]
call fcn.10056da0
mov edx, 0x10
lea ecx, [ebp + 0xe0]
call fcn.1005eee0
push 4
mov dword [ebp + 0x110], 0
call fcn.100fc1cd
add esp, 4
mov dword [ebp + 0x114], eax
mov byte [ebp - 4], 4
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 3
mov dword [ebp + 0x110], eax
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.100671f0
mov byte [ebp - 4], 6
lea eax, [ebp]
push eax
lea eax, [ebp + 0xc8]
push eax
lea ecx, [ebp + 0x110]
call fcn.10067820
mov edi, dword [ebp + 0x110]
test al, al
je 0x1004a5a0
nop dword [eax + eax]
lea ecx, [ebp + 0xf8]
call fcn.100056b0
mov byte [ebp - 4], 8
lea eax, [ebp + 0x28]
push eax
lea edx, [ebp + 0xe0]
lea ecx, [ebp - 0x28]
call fcn.1001d4f0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xf8]
push eax
call fcn.10005630
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.10004ae0
mov edx, 0x10
lea ecx, [ebp + 0xf8]
call fcn.1005eee0
push 4
mov dword [ebp + 0x114], 0
call fcn.100fc1cd
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 8
mov dword [ebp + 0x114], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x40]
call fcn.100671f0
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x80]
push eax
lea edx, [ebp + 0xf8]
lea ecx, [ebp + 0xb0]
call fcn.1001d4f0
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0xb0]
push eax
lea ecx, [ebp + 0x114]
call fcn.10067820
test al, al
je 0x1004a567
mov esi, dword [ebp + 0x114]
lea eax, [ebp + 0x68]
push eax
lea edx, [ebp + 0xf8]
lea ecx, [ebp + 0x98]
call fcn.1001d4f0
add esp, 4
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x98]
push ebx
push eax
call fcn.1004a030
test al, al
jne 0x1004a51b
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.10067600
test al, al
je 0x1004a495
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x98]
call fcn.10004ae0
jmp 0x1004a444
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x98]
call fcn.10004ae0
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xb0]
call fcn.10004ae0
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x68]
call fcn.10004ae0
mov byte [ebp - 4], 8
test esi, esi
je 0x1004a4ea
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1004a4df
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1004a4df
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.100fc65e
add esp, 8
lea eax, [ebp]
mov dword [ebp + 0x114], 0
push eax
mov ecx, edi
call fcn.10067600
test al, al
je 0x1004a591
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf8]
call fcn.10004ae0
jmp 0x1004a370
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x98]
call fcn.10004ae0
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xb0]
call fcn.10004ae0
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x68]
call fcn.10004ae0
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x114]
call fcn.100677e0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf8]
call fcn.10004ae0
mov bl, 1
jmp 0x1004a5a2
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xb0]
call fcn.10004ae0
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x68]
call fcn.10004ae0
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x114]
call fcn.100677e0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf8]
call fcn.10004ae0
xor bl, bl
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x28]
call fcn.10004ae0
mov byte [ebp - 4], 3
test edi, edi
je 0x1004a5d9
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x1004a5ce
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1004a5ce
mov dword [edi], 0xffffffff
push 4
push edi
call fcn.100fc65e
add esp, 8
mov dword [ebp + 0x110], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x80]
call fcn.10004ae0
jmp 0x1004a5f6
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xe0]
call fcn.10004ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc8]
call fcn.10004ae0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x52c]
xor ecx, ebp
call fcn.100fc1a9
lea esp, [ebp + 0x530]
pop ebp
ret 0xc