Function at 0x1001b280
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x1003d1e5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10047810]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x84]
cmp dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
mov edi, dword [ebp + 0x88]
mov dword [ebp - 0x10], edi
jne 0x1001b2cf
xor al, al
jmp 0x1001b7a5
push 4
push 0x1003ea4c
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 0
call fcn.100099a0
cmp dword [ebx], 3
mov dword [ebp - 4], 0
jb 0x1001b308
push esi
call fcn.1001b800
add esp, 4
push esi
call fcn.1001b850
add esp, 4
test al, al
je 0x1001b43f
push esi
call fcn.1001b800
mov ecx, dword [ebx]
add esp, 4
test al, al
je 0x1001b37b
mov edx, dword [ebp + 0x70]
mov eax, SysReAllocString
sub eax, edx
cmp eax, ecx
jb 0x1001b7c2
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
jb 0x1001b346
mov eax, dword [ebp + 0x60]
cmp dword [esi + 0x14], 8
jb 0x1001b34e
mov esi, dword [esi]
push ecx
push esi
push edx
push eax
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x48]
call fcn.1001a8a0
lea eax, [ebp + 0x48]
mov ecx, edi
push eax
call fcn.1000eca0
lea ecx, [ebp + 0x48]
call fcn.10001aa0
mov bl, 1
jmp 0x1001b76d
cmp ecx, 2
jbe 0x1001b438
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1001b390
mov eax, dword [esi]
cmp word [eax], 0x5c
jne 0x1001b438
mov eax, esi
cmp ecx, 8
jb 0x1001b3a3
mov eax, dword [esi]
cmp word [eax + 2], 0x5c
jne 0x1001b438
push 0xffffffffffffffff
push 1
lea eax, [ebp + 0x30]
mov ecx, esi
push eax
call fcn.1001d1c0
mov esi, eax
mov edx, dword [ebp + 0x70]
mov ecx, SysReAllocString
sub ecx, edx
mov byte [ebp - 4], 1
cmp ecx, 3
jb 0x1001b7c7
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
jb 0x1001b3e2
mov eax, dword [ebp + 0x60]
push 3
push 0x1003ea80
push edx
push eax
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.1001a8a0
push esi
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x48]
call fcn.10011b10
lea eax, [ebp + 0x48]
mov ecx, edi
push eax
call fcn.1000eca0
lea ecx, [ebp + 0x48]
call fcn.10001aa0
lea ecx, [ebp]
call fcn.10001aa0
lea ecx, [ebp + 0x30]
call fcn.10001aa0
mov bl, 1
jmp 0x1001b76d
xor bl, bl
jmp 0x1001b76d
mov edi, 7
mov dword [ebp + 0x30], 0
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], edi
mov word [ebp + 0x30], ax
push eax
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1001b738
lea ecx, [ebp - 0x11]
push ecx
push eax
lea ecx, [ebp + 0x24]
call fcn.100158f0
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
sub eax, edi
sar eax, 1
push edi
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, edi
mov dword [ebp - 0x14], eax
lea eax, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x1001b4a0
sub edx, eax
lea ecx, [ebp + 0x30]
sar edx, 1
push edx
push edi
call fcn.1000aa80
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.10009e80
cmp dword [ebp - 0x14], 0
je 0x1001b735
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001b4d9
mov eax, dword [esi]
movzx eax, word [eax]
cmp eax, 0x5c
je 0x1001b5b9
cmp eax, 0x2f
je 0x1001b5b9
mov edx, dword [ebp + 0x70]
mov eax, SysReAllocString
mov edi, dword [ebp + 0x40]
sub eax, edx
cmp eax, edi
jb 0x1001b7cc
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
jb 0x1001b50f
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x44], 8
lea ecx, [ebp + 0x30]
jb 0x1001b51b
mov ecx, dword [ebp + 0x30]
push edi
push ecx
push edx
push eax
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x48]
call fcn.1001a8a0
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 0x48]
push eax
mov ecx, ebx
call fcn.1000eca0
lea ecx, [ebp + 0x48]
call fcn.10001aa0
push ebx
call fcn.1001a9b0
mov ecx, dword [esi + 0x14]
add esp, 4
xor edi, edi
mov eax, esi
cmp ecx, 8
jb 0x1001b55b
mov eax, dword [esi]
cmp word [eax], 0x2e
jne 0x1001b580
mov eax, esi
cmp ecx, 8
jb 0x1001b56a
mov eax, dword [esi]
movzx eax, word [eax + 2]
push eax
call fcn.1001b9a0
add esp, 4
test al, al
je 0x1001b580
mov edi, 2
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call fcn.1001d1c0
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 7
jb 0x1001b59c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.100077e0
lea ecx, [ebp + 0x48]
call fcn.10001aa0
mov edi, dword [ebp + 0x44]
mov bl, 1
jmp 0x1001b73a
mov edi, dword [ebp + 0x44]
lea eax, [ebp + 0x30]
cmp edi, 8
jb 0x1001b5c7
mov eax, dword [ebp + 0x30]
mov ax, word [eax]
mov ecx, dword [ebp + 0x70]
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x1001b7d1
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
jb 0x1001b5e9
mov eax, dword [ebp + 0x60]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.1001a8a0
push 0x3a
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.100157d0
mov eax, dword [ebp]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x2c], eax
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 6
jb 0x1001b652
mov esi, dword [esi]
push dword [ebx]
lea ecx, [ebp + 0x18]
push esi
call fcn.100077e0
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp + 0x48], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 0x4c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp + 0x5c], eax
xor eax, eax
mov dword [ebp + 0x54], ecx
mov ecx, dword [edx + 0x10]
mov word [edx], ax
lea eax, [ebp + 0x48]
mov dword [ebp + 0x58], ecx
mov ecx, dword [ebp - 0x10]
push eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
call fcn.1000eca0
mov ecx, dword [ebp + 0x5c]
cmp ecx, 8
jb 0x1001b6db
mov edx, dword [ebp + 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b6d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b7d6
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp + 0x2c]
cmp ecx, 8
jb 0x1001b715
mov edx, dword [ebp + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b70b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b7d6
push ecx
push edx
call fcn.100308ca
add esp, 8
xor eax, eax
mov dword [ebp + 0x28], 0
lea ecx, [ebp]
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.10001aa0
mov bl, 1
jmp 0x1001b73a
mov edi, dword [ebp + 0x44]
xor bl, bl
cmp edi, 8
jb 0x1001b76d
mov ecx, dword [ebp + 0x30]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x1001b763
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b7db
push edi
push ecx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp + 0x74]
cmp ecx, 8
jb 0x1001b7a3
mov edx, dword [ebp + 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b799
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b7db
push ecx
push edx
call fcn.100308ca
add esp, 8
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 + 0x78]
xor ecx, ebp
call fcn.100308d8
lea esp, [ebp + 0x7c]
pop ebp
ret
call fcn.10003930
call fcn.10003930
call fcn.10003930
call fcn.10003930
call fcn.1003442e
call fcn.1003442e
int3