Function at 0x10029690
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100510d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
mov eax, dword [0x1006099c]
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov dword [esp + 0x1e4], eax
push edi
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
push 0x30
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x1fc], 1
call fcn.10028d90
push 0x104
lea ecx, [esp + 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xe4]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10029710
mov eax, dword [esp + 0xc4]
mov dx, word [0x100537f4]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0xb0]
mov word [edi], dx
jae 0x10029740
lea eax, [esp + 0xb0]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10029742
lea edi, [esp + 0xe4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10029753
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xe4]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10029775
sub eax, edx
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0xb4]
call fcn.10001f80
push ebx
mov edi, 0xf
push 0x100534c7
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.10001f80
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1f8], 2
call fcn.10029270
cmp dword [esp + 0xc4], ebp
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x1f4], 3
jae 0x100297f1
lea eax, [esp + 0xb0]
push 0x1b6
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.10006680
test eax, eax
jne 0x1002982a
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x1c]
mov edx, dword [esp + ecx + 0x3c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp edx, ebx
jne 0x10029823
or eax, 4
push ebx
push eax
call fcn.1003e67a
cmp dword [esp + 0x74], ebx
je 0x10029858
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x18]
call fcn.10005da0
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0xcc]
push eax
push ecx
call fcn.10006ac0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.100070a0
test eax, eax
jne 0x10029889
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x1c]
mov edx, dword [esp + ecx + 0x3c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp edx, ebx
jne 0x10029882
or eax, 4
push ebx
push eax
call fcn.1003e67a
cmp dword [esp + 0xdc], ebx
jne 0x100298a5
push 2
push 0x10054868
lea ecx, [esp + 0xd0]
call fcn.10001f80
mov esi, dword [esp + 0x1fc]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd0]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10001e90
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1f4], 2
call fcn.10007700
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x10055508
call fcn.1003e590
cmp dword [esp + 0xe0], ebp
jb 0x1002990a
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.10036530
add esp, 4
cmp dword [esp + 0xc4], ebp
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x10029938
mov edx, dword [esp + 0xb0]
push edx
call fcn.10036530
add esp, 4
mov ecx, dword [esp + 0x1ec]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1dc]
pop ebx
call fcn.1003fd01
add esp, 0x1e8
ret 4