Function at 0x12e36650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
push ebx
mov ebx, dword [esp + 0x230]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x12e368dd
cmp dword [esp + 0x248], esi
je 0x12e368dd
cmp dword [esp + 0x24c], esi
je 0x12e368dd
mov eax, dword [esp + 0x240]
cmp eax, 0x100011
je 0x12e366ac
cmp eax, 0x100620
je 0x12e366ac
cmp eax, 0x100621
je 0x12e366ac
cmp eax, 0x100613
jne 0x12e368dd
mov eax, 4
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], 0x130b9230
mov dword [esp + 0x28], 0x131093c4
mov dword [esp + 0x2c], 0x1310ac74
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 7
mov eax, dword [esp + esi*4 + 0x18]
mov ecx, dword [esp + esi*4 + 0x24]
push eax
push ecx
push ebx
call fcn.12f5d731
add esp, 0xc
test eax, eax
je 0x12e366fe
inc esi
cmp esi, 2
jb 0x12e366df
jmp 0x12e3672c
mov edx, dword [esp + esi*4 + 0x18]
push 0x1310ac74
mov ebp, 1
lea eax, [ebx + edx*2]
push eax
call fcn.12f5d02e
add esp, 8
test eax, eax
jne 0x12e36725
mov esi, 2
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + esi*4 + 0x18]
lea ebx, [ebx + ecx*2]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], 0
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call fcn.12f5c51d
add esp, 4
mov esi, eax
test ebp, ebp
jne 0x12e367af
cmp esi, 2
jbe 0x12e3676c
mov ax, word [ebx + 2]
cmp ax, 0x3a
je 0x12e367af
cmp word [ebx], 0x5c
jne 0x12e3676c
cmp ax, 0x5c
je 0x12e367af
lea edx, [esp + 0x30]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [eax + esi + 1]
cmp eax, 0x104
jae 0x12e367e8
cmp word [ebx], 0x5c
je 0x12e3679f
lea ecx, [esp + 0x30]
push 0x130c4ed0
push ecx
call fcn.12f5c935
add esp, 8
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.12f5c935
add esp, 8
jmp 0x12e367e8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e367d1
lea eax, [esi + 1]
cmp eax, 0x104
jae 0x12e367e8
push esi
lea ecx, [esp + 0x36]
push ebx
mov word [esp + 0x38], 0x5c
push ecx
jmp 0x12e367e0
cmp esi, 0x104
jae 0x12e367e8
push esi
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.12f5c57b
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call fcn.12f5c51d
add esp, 4
test eax, eax
je 0x12e368dd
mov ecx, dword [0x1310ac6c]
mov dx, word [0x1310ac70]
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
xor ebx, ebx
lea edi, [esp + 0x10]
mov ax, word [edi]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.12f5d099
mov esi, eax
add esp, 8
test esi, esi
jne 0x12e36839
inc ebx
add edi, 2
cmp ebx, 2
jb 0x12e36819
mov ebx, dword [esp + 0x244]
xor ebp, ebp
test esi, esi
mov dword [ebx], ebp
je 0x12e36874
cmp dword [esp + 0x240], 0x100613
jne 0x12e368d0
push 0x5c
push esi
call fcn.12f5d099
add esp, 8
test eax, eax
jne 0x12e368d0
lea edx, [esp + 0x30]
mov dword [ebx], 1
sub esi, edx
sar esi, 1
jmp 0x12e36883
lea eax, [esp + 0x30]
push eax
call fcn.12f5c51d
add esp, 4
mov esi, eax
test esi, esi
jbe 0x12e368d0
mov eax, dword [esp + 0x24c]
cmp esi, eax
jb 0x12e36895
lea esi, [eax - 1]
mov edi, dword [esp + 0x248]
lea ecx, [esp + 0x30]
push esi
push ecx
push edi
call fcn.12f5c57b
mov word [edi + esi*2], 0
mov eax, dword [ebx]
add esp, 0xc
mov ebp, 1
test eax, eax
je 0x12e368d0
push 0x5c
push edi
call fcn.12f5c984
add esp, 8
test eax, eax
je 0x12e368d0
mov word [eax], 0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret