Function at 0x102e9ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x1067a40]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x54]
mov dword [ebp - 4], eax
mov dword [ebp - 0x94c], edi
jmp 0x102e9e8
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [eax + 0x38]
je 0x102e9e5
push ecx
push dword [ebp + 8]
call fcn.01036dbd
test eax, eax
pop ecx
pop ecx
je 0x102ea0f
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x102e9cb
mov edi, dword [edi + 0x6c]
test edi, edi
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x948], edi
je 0x102ec99
mov eax, dword [ebp - 0x948]
mov esi, dword [eax + 8]
jmp 0x102eb66
push dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
push dword [eax + 0x38]
push dword [ebp + 0xc]
call fcn.01021459
push dword [ebp + 0xc]
call fcn.010215c4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x102ecad
movzx eax, word [esi + 4]
test al, 8
je 0x102eaba
push 0x2e
push dword [ebp + 8]
call fcn.01037a40
test eax, eax
pop ecx
pop ecx
je 0x102ea52
sub eax, dword [ebp + 8]
jmp 0x102ea61
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102ea58
sub eax, edx
mov dword [ebp + 0xc], eax
movzx eax, word [esi + 6]
lea edx, [eax + esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102ea71
sub eax, edi
cmp eax, dword [ebp + 0xc]
jne 0x102eb64
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
call fcn.010380e5
add esp, 0xc
test eax, eax
jne 0x102eb64
push dword [ebp + 0x10]
add esi, 8
push esi
push ebx
call fcn.01021459
push ebx
call fcn.010215c4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x102ecac
test al, 4
je 0x102ead3
movzx eax, word [esi + 6]
push dword [ebp + 8]
lea eax, [eax + esi + 8]
push eax
call fcn.01036dbd
pop ecx
pop ecx
jmp 0x102ea92
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
push ebx
call fcn.01021459
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102eae5
mov ecx, dword [ebp + 0x14]
sub eax, edi
add eax, ebx
mov dword [ecx], eax
mov ecx, ebx
sub ecx, eax
add ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
push eax
call fcn.01021459
push 0x50
pop ecx
xor eax, eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x102eb64
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x144], 0x10
jne 0x102eb64
cmp dword [ebp - 0x130], 0
jne 0x102eab2
cmp dword [ebp - 0x12c], 0
jne 0x102eab2
mov ecx, dword [ebp - 0x94c]
push ebx
call fcn.0102d012
test al, al
jne 0x102eab2
mov esi, dword [esi]
test esi, esi
jne 0x102ea35
mov eax, dword [ebp - 0x948]
cmp dword [eax + 4], 1
jne 0x102ec83
push esi
lea eax, [ebp - 0x944]
push eax
mov edi, 0x800
push edi
push esi
push dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathA]
call esi
test eax, eax
je 0x102eba1
cmp eax, edi
jbe 0x102eba8
mov byte [ebp - 0x944], 0
mov eax, dword [ebp - 0x948]
mov ecx, dword [eax + 0xc]
cmp ecx, 0xffffffff
je 0x102ec2e
mov eax, dword [0x1069360]
test eax, eax
je 0x102ec2e
and dword [ebp + 0xc], 0
lea edx, [ebp + 0xc]
push edx
push ecx
call eax
test eax, eax
je 0x102ec2e
xor edi, edi
push edi
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push edi
call esi
cmp eax, edi
je 0x102ebe5
cmp eax, dword [ebp + 0x10]
jle 0x102ebe8
mov byte [ebx], 0
push dword [ebp + 0xc]
push edi
call dword [0x1069364]
cmp byte [ebx], 0
je 0x102ec2e
mov edi, ebx
lea esi, [ebp - 0x944]
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x102ec21
test al, al
je 0x102ec1d
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x102ec21
inc esi
inc esi
inc edi
inc edi
test al, al
jne 0x102ebff
xor eax, eax
jmp 0x102ec26
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x102eccb
mov esi, dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x102ec41
cmp eax, esi
jle 0x102ec4d
push esi
push 0x100a0fc
push ebx
call fcn.01021459
push esi
push 0x100a0f4
push esi
push ebx
call fcn.01021548
push eax
call fcn.01021489
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102ec65
sub eax, esi
push eax
lea eax, [ebp - 0x944]
push ebx
push eax
call fcn.010380e5
add esp, 0xc
test eax, eax
je 0x102ecbb
mov eax, dword [ebp - 0x948]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x948], eax
jne 0x102ea01
push dword [ebp + 0x10]
push dword [ebp + 8]
push ebx
call fcn.01021459
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01032376
leave
ret 0x10
push dword [ebp + 0x10]
lea eax, [ebp - 0x944]
push eax
push ebx
call fcn.01021459
mov esi, dword [ebp - 0x948]
push 0
push ebx
push 4
push dword [esi + 8]
call fcn.0102a651
mov dword [esi + 8], eax
jmp 0x102eaa7