Function at 0x100231f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], ebx
cmp eax, ebx
jne 0x1002382
mov dword [ecx], 2
jmp 0x10026d4
push esi
push edi
push 3
push eax
lea eax, [ebp - 0xc]
push 4
push eax
call sub.msvcrt.dll_wcsncpy_s
xor eax, eax
mov word [ebp - 6], ax
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x100248a
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
lea ecx, [ebp - 0x224]
push ecx
push 1
push eax
mov dword [ebp - 0x228], eax
call fcn.01001897
test eax, eax
jne 0x100240c
mov eax, dword [ebp - 0x224]
push 2
pop ecx
mul ecx
lea ecx, [ebp - 0x224]
push ecx
push edx
push eax
call fcn.01001865
test eax, eax
jne 0x100240c
push dword [ebp - 0x224]
push 0x40
call edi
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x100244f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
push 0x1c12
push dword [0x1005018]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01001e4c
mov eax, dword [ebp - 0x218]
mov dword [eax], 2
jmp 0x10026d2
push eax
push dword [ebp - 0x228]
call ebx
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x228]
cmp word [eax + ecx*2 - 4], 0x5c
je 0x1002488
mov eax, dword [ebp - 0x224]
push 0x100119c
shr eax, 1
push eax
push dword [ebp - 0x214]
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1002493
sub eax, edx
sar eax, 1
cmp esi, ebx
je 0x10024ab
add eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x210]
push ecx
push 1
push eax
call fcn.01001897
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x10024f5
mov eax, dword [ebp - 0x210]
push 2
pop ecx
mul ecx
lea ecx, [ebp - 0x210]
push ecx
push edx
push eax
call fcn.01001865
test eax, eax
jne 0x10024f5
push dword [ebp - 0x210]
push 0x40
call edi
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x100252c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
push 0x1c12
push dword [0x1005018]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01001e4c
jmp 0x1002694
test esi, esi
je 0x1002548
push dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
shr ecx, 1
push ecx
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push dword [ebp - 0x230]
mov eax, dword [ebp - 0x210]
shr eax, 1
push eax
push dword [ebp - 0x220]
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push dword [ebp - 0x210]
push 0x40
call edi
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x10024f5
push dword [ebp - 0x220]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
jne 0x10025c2
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x1c11
push dword [0x1005018]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01001d54
pop ecx
push esi
call ebx
jmp 0x1002694
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10025c7
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
push esi
push 0x40
call edi
mov edi, eax
mov dword [ebp - 0x22c], edi
test edi, edi
jne 0x1002624
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
push 0x1c12
push dword [0x1005018]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01001e4c
push dword [ebp - 0x21c]
jmp 0x10025bb
push dword [ebp - 0x21c]
shr esi, 1
push esi
push edi
call sub.msvcrt.dll_wcscpy_s
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x14
test eax, eax
je 0x1002648
xor ecx, ecx
mov word [eax], cx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10026a0
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x1c14
push dword [0x1005018]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1001478
call fcn.01001d54
add esp, 0xc
push dword [ebp - 0x21c]
call ebx
and dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x218]
mov dword [eax], 2
xor esi, esi
cmp dword [ebp - 0x214], esi
je 0x10026b2
push dword [ebp - 0x214]
call ebx
cmp dword [ebp - 0x220], esi
je 0x10026c2
push dword [ebp - 0x220]
call ebx
cmp dword [ebp - 0x22c], esi
je 0x10026d2
push dword [ebp - 0x22c]
call ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
pop ebx
call fcn.01003adf
leave
ret 8