Function at 0x1006fd10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e10dc
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x10122064]
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 edi, ecx
cmp dword [edi + 0x14], 0x10
mov esi, edi
jb 0x1006fd4a
mov esi, dword [edi]
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x144], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x140], 0xf
mov byte [ebp - 0x154], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fd90
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 0x154]
call fcn.1001de90
push 1
push 0x1010b1c4
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0
call fcn.1001e0f0
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006fdd0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x154]
call fcn.1001e0f0
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x154]
push 0x1010b204
cmovae eax, dword [ebp - 0x154]
push eax
call fcn.10096a70
mov edi, dword [edi + 0x18]
add esp, 8
mov ebx, eax
mov dword [ebp - 0x190], ebx
mov edi, dword [edi]
mov dword [ebp - 0x188], edi
cmp byte [edi + 0xd], 0
jne 0x100700fc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x198], eax
lea esi, [edi + 0x10]
push esi
lea ecx, [ebp - 0x13c]
call fcn.1001db50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x124]
push 0x40
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x194], eax
call fcn.1008a330
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
push dword [ebp - 0x18c]
push eax
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call fcn.10072ef0
mov ecx, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0x120], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x1006fef7
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x1006fed3
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1006fec7
mov dword [esi], edx
mov edx, dword [ebp - 0x124]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x1006fef2
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x1006fee7
mov dword [edx + 8], ecx
jmp 0x1006ff02
mov dword [esi], esi
mov eax, dword [ebp - 0x124]
mov dword [eax + 8], eax
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x13c]
cmp dword [ebp - 0x128], 0x10
cmovae eax, dword [ebp - 0x13c]
push eax
push str.__s__n
push ebx
call fcn.10016e70
mov esi, dword [ebp - 0x124]
add esp, 0xc
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x10070012
mov edi, dword [ebp - 0x190]
nop dword [eax + eax]
lea ebx, [esi + 0x10]
push ebx
lea ecx, [ebp - 0x184]
call fcn.1001db50
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x16c]
call fcn.1001db50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16c]
cmp dword [ebp - 0x158], 0x10
lea eax, [ebp - 0x184]
cmovae ecx, dword [ebp - 0x16c]
cmp dword [ebp - 0x170], 0x10
push ecx
cmovae eax, dword [ebp - 0x184]
push eax
push str._s_s_n
push edi
call fcn.10016e70
add esp, 0x10
lea ecx, [ebp - 0x184]
call fcn.10070180
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1006ffe4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1006ffe0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x1006ffe0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1006ffd0
mov esi, eax
jmp 0x1006fffc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1006fffc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1006fff0
cmp byte [esi + 0xd], 0
je 0x1006ff50
mov edi, dword [ebp - 0x188]
mov ebx, dword [ebp - 0x190]
push 0x1010ac98
push ebx
call fcn.10016e70
mov byte [ebp - 4], 0
add esp, 8
mov eax, dword [ebp - 0x124]
push dword [eax + 4]
lea eax, [ebp - 0x124]
push eax
mov ecx, eax
call fcn.10072d60
push 0x40
push dword [ebp - 0x124]
call fcn.1008ab90
mov eax, dword [ebp - 0x128]
add esp, 8
cmp eax, 0x10
jb 0x1007009c
mov ecx, dword [ebp - 0x13c]
inc eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18c], ecx
cmp eax, 0x1000
jb 0x10070092
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x188]
add esp, 8
mov ecx, dword [ebp - 0x18c]
push eax
push ecx
call fcn.1008ab90
add esp, 8
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x100700ca
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x100700c0
nop
cmp edi, dword [eax + 8]
jne 0x100700c0
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100700b0
mov edi, eax
mov dword [ebp - 0x188], edi
jmp 0x100700f2
mov edi, eax
mov dword [ebp - 0x188], edi
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x100700f2
nop word [eax + eax]
mov eax, dword [ecx]
mov edi, ecx
mov dword [ebp - 0x188], edi
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100700e0
cmp byte [edi + 0xd], 0
je 0x1006fe31
push ebx
call fcn.10093280
mov eax, dword [ebp - 0x140]
add esp, 4
cmp eax, 0x10
jb 0x10070156
mov ecx, dword [ebp - 0x154]
inc eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x190], ecx
cmp eax, 0x1000
jb 0x1007014c
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.10017080
mov eax, dword [ebp - 0x18c]
add esp, 8
mov ecx, dword [ebp - 0x190]
push eax
push ecx
call fcn.1008ab90
add esp, 8
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.1008a020
mov esp, ebp
pop ebp
ret 4