Function at 0x1004a3e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x530]
sub esp, 0x530
push 0xffffffffffffffff
push 0x1012fabc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10194008]
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.10004ac0
mov dword [ebp - 4], 0
mov edx, 0x1015b998
lea ecx, [ebp + 0xc8]
call fcn.10056fb0
mov edx, 0x1015b998
lea ecx, [ebp + 0xc8]
call fcn.10057040
lea ecx, [ebp + 0xe0]
call fcn.10005680
mov byte [ebp - 4], 1
push ecx
push 0x5c
lea ecx, [ebp + 0xc8]
call fcn.10030ff0
cmp eax, 0xffffffff
jne 0x1004a4fe
push ecx
push 0x2f
lea ecx, [ebp + 0xc8]
call fcn.10030ff0
cmp eax, 0xffffffff
jne 0x1004a4fe
lea ecx, [ebp + 0xe0]
call fcn.10014230
push 0x412
lea eax, [ebp + 0x118]
push 0
push eax
call fcn.100fe280
add esp, 0xc
lea eax, [ebp + 0x118]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1004a532
cmp eax, 0x208
jae 0x1004a532
xor eax, eax
mov word [ebp + 0x528], ax
lea eax, [ebp + 0x118]
push eax
call fcn.100058c0
add esp, 4
lea ecx, [ebp + 0xe0]
push eax
lea eax, [ebp + 0x118]
push eax
call fcn.10004c10
jmp 0x1004a532
push eax
push 0
lea eax, [ebp + 0xb0]
push eax
lea ecx, [ebp + 0xc8]
call fcn.1000e100
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xe0]
push eax
call fcn.10005600
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xb0]
call fcn.10004ab0
lea ecx, [ebp + 0xe0]
call fcn.100055f0
test al, al
jne 0x1004a894
mov ecx, esi
call fcn.100055f0
test al, al
jne 0x1004a894
mov ecx, ebx
call fcn.100055f0
test al, al
jne 0x1004a894
push esi
lea ecx, [ebp + 0x80]
call fcn.10004ac0
mov byte [ebp - 4], 3
mov edx, 0x1015b998
lea ecx, [ebp + 0x80]
call fcn.10056fb0
mov edx, 0x1015b998
lea ecx, [ebp + 0x80]
call fcn.10057040
mov edx, 0x10
lea ecx, [ebp + 0xe0]
call fcn.1005f180
push 4
mov dword [ebp + 0x110], 0
call fcn.100fc4bd
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.10067490
mov byte [ebp - 4], 6
lea eax, [ebp]
push eax
lea eax, [ebp + 0xc8]
push eax
lea ecx, [ebp + 0x110]
call fcn.10067ac0
mov edi, dword [ebp + 0x110]
test al, al
je 0x1004a840
nop dword [eax + eax]
lea ecx, [ebp + 0xf8]
call fcn.10005680
mov byte [ebp - 4], 8
lea eax, [ebp + 0x28]
push eax
lea edx, [ebp + 0xe0]
lea ecx, [ebp - 0x28]
call fcn.1001d770
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xf8]
push eax
call fcn.10005600
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov edx, 0x10
lea ecx, [ebp + 0xf8]
call fcn.1005f180
push 4
mov dword [ebp + 0x114], 0
call fcn.100fc4bd
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.10067490
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x80]
push eax
lea edx, [ebp + 0xf8]
lea ecx, [ebp + 0xb0]
call fcn.1001d770
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.10067ac0
test al, al
je 0x1004a807
mov esi, dword [ebp + 0x114]
lea eax, [ebp + 0x68]
push eax
lea edx, [ebp + 0xf8]
lea ecx, [ebp + 0x98]
call fcn.1001d770
add esp, 4
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x98]
push ebx
push eax
call fcn.1004a2d0
test al, al
jne 0x1004a7bb
lea eax, [ebp + 0x40]
mov ecx, esi
push eax
call fcn.100678a0
test al, al
je 0x1004a735
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x98]
call fcn.10004ab0
jmp 0x1004a6e4
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x98]
call fcn.10004ab0
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xb0]
call fcn.10004ab0
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x68]
call fcn.10004ab0
mov byte [ebp - 4], 8
test esi, esi
je 0x1004a78a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1004a77f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1004a77f
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.100fc94e
add esp, 8
lea eax, [ebp]
mov dword [ebp + 0x114], 0
push eax
mov ecx, edi
call fcn.100678a0
test al, al
je 0x1004a831
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf8]
call fcn.10004ab0
jmp 0x1004a610
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x98]
call fcn.10004ab0
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xb0]
call fcn.10004ab0
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x68]
call fcn.10004ab0
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x114]
call fcn.10067a80
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf8]
call fcn.10004ab0
mov bl, 1
jmp 0x1004a842
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xb0]
call fcn.10004ab0
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x68]
call fcn.10004ab0
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x114]
call fcn.10067a80
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf8]
call fcn.10004ab0
xor bl, bl
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x28]
call fcn.10004ab0
mov byte [ebp - 4], 3
test edi, edi
je 0x1004a879
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x1004a86e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1004a86e
mov dword [edi], 0xffffffff
push 4
push edi
call fcn.100fc94e
add esp, 8
mov dword [ebp + 0x110], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x80]
call fcn.10004ab0
jmp 0x1004a896
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xe0]
call fcn.10004ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc8]
call fcn.10004ab0
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.100fc499
lea esp, [ebp + 0x530]
pop ebp
ret 0xc