Function at 0x413d5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468736
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x47c0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38c], 0x114
mov ecx, dword [ebp + 8]
call fcn.0040e336
movzx eax, byte [0x47ef51]
test eax, eax
jne 0x413e8c
xor eax, eax
inc eax
imul eax, eax, 0
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x370], 0x115
jae 0x413dc3
jmp 0x413dc8
call fcn.0045bb1a
mov eax, dword [ebp - 0x370]
mov byte [ebp + eax - 0x128], 0
lea eax, [ebp - 0x128]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0
je 0x413e03
cmp dword [ebp - 0x36c], 0x114
jb 0x413e0a
xor al, al
jmp 0x414010
xor eax, eax
inc eax
imul eax, eax, 0x114
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0x115
jae 0x413e27
jmp 0x413e2c
call fcn.0045bb1a
mov eax, dword [ebp - 0x368]
mov byte [ebp + eax - 0x128], 0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x398]
push eax
call fcn.004104f6
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x384], eax
and dword [ebp - 4], 0
push dword [ebp - 0x384]
mov ecx, dword [ebp + 8]
call fcn.0040fb3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x398]
call fcn.0040e2ca
mov al, 1
jmp 0x414010
push 2
pop eax
imul eax, eax, 0
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0x22a
jae 0x413ea6
jmp 0x413eab
call fcn.0045bb1a
xor eax, eax
mov ecx, dword [ebp - 0x364]
mov word [ebp + ecx - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
jne 0x413ee3
xor al, al
jmp 0x414010
cmp dword [ebp - 0x35c], 0x114
jae 0x413f37
push 2
pop eax
imul eax, eax, 0x114
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0x22a
jae 0x413f0c
jmp 0x413f11
call fcn.0045bb1a
xor eax, eax
mov ecx, dword [ebp - 0x374]
mov word [ebp + ecx - 0x354], ax
lea eax, [ebp - 0x354]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040fab4
mov al, 1
jmp 0x414010
lea ecx, [ebp - 0x380]
call fcn.0040f8d6
mov dword [ebp - 4], 1
push dword [ebp - 0x35c]
lea ecx, [ebp - 0x380]
call fcn.00410699
push eax
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
jne 0x413f94
mov byte [ebp - 0x357], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x380]
call fcn.0040e2ca
mov al, byte [ebp - 0x357]
jmp 0x414010
push dword [ebp - 0x35c]
lea ecx, [ebp - 0x380]
call fcn.0041211c
lea ecx, [ebp - 0x380]
call fcn.0040e304
cmp eax, dword [ebp - 0x360]
jne 0x413fc7
mov eax, dword [ebp - 0x35c]
dec eax
cmp eax, dword [ebp - 0x360]
je 0x413fe5
mov byte [ebp - 0x356], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x380]
call fcn.0040e2ca
mov al, byte [ebp - 0x356]
jmp 0x414010
lea eax, [ebp - 0x380]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040fb3c
mov byte [ebp - 0x355], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x380]
call fcn.0040e2ca
mov al, byte [ebp - 0x355]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a9b0
leave
ret 4