Function at 0x102b2f7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1067a40]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
or dword [esi + 0xc], 0xffffffff
push edi
xor edi, edi
mov dword [esi], eax
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
jl case.default.0x102b348
cmp eax, 9
jge case.default.0x102b348
cmp eax, 8
mov byte [ebp - 0x814], 0
ja case.default.0x102b348
push ebx
jmp dword [eax*4 + 0x102b5eb]
cmp dword [ebp + 0x14], edi
je 0x102b5da
push edi
push dword [ebp + 0x14]
jmp 0x102b5bd
cmp dword [fcn.0106935c], edi
je 0x102b5da
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x102b5da
cmp byte [ebx], 0
je 0x102b5da
push ebx
push 0x1008e84
lea eax, [ebp - 0x814]
push 0x810
push eax
mov dword [ebp + 0x14], edi
call fcn.010213c8
add esp, 0x10
push 8
pop ecx
xor eax, eax
push 0x20
lea edi, [ebp - 0x834]
rep stosd dword es:[edi], eax
pop eax
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x814]
push 0
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x81c], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x834]
push eax
call dword [fcn.0106935c]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x102b5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x36b0
jb 0x102b404
cmp eax, 0x3a97
ja 0x102b404
mov dword [esi + 0x10], eax
push 8
pop ecx
xor eax, eax
push 0x20
lea edi, [ebp - 0x834]
rep stosd dword es:[edi], eax
pop eax
push 0
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x81c], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x834]
push eax
call dword [fcn.0106935c]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x102b5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x36b0
jb 0x102b464
cmp eax, 0x3a97
ja 0x102b464
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 1
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x834]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x834], 0x20
mov dword [ebp - 0x830], 0x28
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x820], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x834]
push eax
call dword [fcn.0106935c]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x102b4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x14], 0
jne 0x102b4db
cmp eax, 0x36b0
jb 0x102b4db
cmp eax, 0x3a97
ja 0x102b4db
mov dword [ebp + 0x14], eax
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 2
jbe 0x102b46b
cmp dword [esi + 0xc], 0xffffffff
jne 0x102b5da
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
jmp 0x102b5da
mov ecx, esi
call fcn.0102aa43
cmp eax, edi
mov dword [esi + 8], eax
jne 0x102b5da
mov ecx, esi
call fcn.0102a8ce
jmp 0x102b5d7
cmp dword [ebp + 0x10], edi
je 0x102b5da
push 0x5c
push 0x810
push dword [ebp + 0x10]
lea eax, [ebp - 0x814]
push eax
call fcn.01021459
push eax
call fcn.01037a40
cmp eax, edi
pop ecx
pop ecx
je 0x102b5da
mov byte [eax + 1], 0
jmp 0x102b5b5
mov ebx, 0x810
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x102b5ad
mov ebx, 0x809
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, edi
jle 0x102b5da
cmp eax, ebx
ja 0x102b5da
add ebx, 7
push ebx
push 0x1008e7c
push ebx
lea eax, [ebp - 0x814]
push eax
call fcn.01021548
push eax
call fcn.01021489
jmp 0x102b5b5
mov ebx, 0x810
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, edi
jle 0x102b5da
cmp eax, ebx
ja 0x102b5da
push edi
lea eax, [ebp - 0x814]
push eax
call fcn.0102a5a8
jmp 0x102b5d7
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0102b13d
jmp 0x102b5d7
mov ecx, esi
call fcn.0102b0d9
mov dword [esi + 8], eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01032376
leave
ret 0x10