Function at 0x1013c50
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0xa14], eax
mov dword [ebp - 0xa10], ebx
jne 0x1013cab
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x208
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x1013cfa
push 0x1001950
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0101627b
add esp, 0xc
jmp 0x1013cfa
push 0x207
push eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.010163b1
add esp, 0x10
push 0x5c
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e5cd
mov esi, eax
cmp esi, ebx
jne 0x1013ced
push 0x2f
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e5cd
mov esi, eax
cmp esi, ebx
je 0x1013cfa
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], bl
jne 0x1013cfa
mov byte [esi], bl
mov edi, 0x102114c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x102118c]
jmp 0x1013d27
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x1013d2b
mov esi, dword [esi]
cmp esi, ebx
jne 0x1013d0e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
jne 0x1013ea7
cmp dword [0x1021294], ebx
jne 0x1013dd8
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10022ac
call edi
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1013d6a
push 0x1002298
push eax
call esi
mov dword [0x10217e8], eax
cmp dword [0x10217e8], ebx
jne 0x1013dce
push 0x100228c
call edi
mov edi, eax
cmp edi, ebx
je 0x1013dce
push 0x100227c
push edi
call esi
cmp eax, ebx
mov dword [0x10217dc], eax
je 0x1013db1
push ebx
call eax
test eax, eax
jl 0x1013db1
push 0x1002268
push edi
call esi
push 0x1002250
push edi
mov dword [0x10217e0], eax
call esi
mov dword [0x10217e4], eax
mov eax, dword [0x10217e0]
cmp eax, ebx
je 0x1013dce
push 0x10213bc
push 0x1002904
push ebx
push 1
push 0x1002174
call eax
mov dword [0x1021294], 1
mov eax, dword [0x10217e8]
cmp eax, ebx
je 0x1013df1
lea ecx, [ebp - 0xa10]
push ecx
push 0x1002174
call eax
jmp 0x1013e15
cmp dword [0x10217e0], ebx
je 0x1013e15
mov eax, dword [0x10213bc]
cmp eax, ebx
je 0x1013e15
mov ecx, dword [eax]
lea edx, [ebp - 0xa10]
push edx
push 0x1002164
push ebx
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0xa10], ebx
je 0x1013e6e
cmp dword [ebp - 0xa14], ebx
mov eax, 0x1002248
jne 0x1013e2f
mov eax, 0x1001552
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100155c
lea eax, [ebp - 0xa0c]
push 0x800
push eax
call fcn.010161e1
mov eax, dword [ebp - 0xa10]
add esp, 0x14
push 1
lea edx, [ebp - 0xa0c]
push edx
mov byte [ebp - 0x20d], bl
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
push 0x31c
call fcn.01012843
cmp eax, ebx
pop ecx
je 0x1013e95
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0xa10]
mov ecx, eax
call fcn.01013bdc
mov esi, eax
jmp 0x1013e97
xor esi, esi
mov eax, dword [ebp - 0xa10]
cmp eax, ebx
je 0x1013ea7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 4