Function at 0x1002f760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10034880
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x18]
mov edx, 0x200
xor edi, edi
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp edx, 0x201
jae 0x1002f7e0
jmp 0x1002f7ce
jbe 0x1002f86d
cmp edx, 0x201
jae 0x1002f7e0
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x44c]
mov esi, edx
jmp 0x1002f80f
sub edx, edi
je 0x1002f804
mov eax, edx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push eax
call fcn.10052dd0
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov esi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push esi
mov dword [ebp - 0x20], ebx
push ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
jne 0x1002f83c
mov dword [ebp - 0x3c], edi
mov ebx, edx
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x3c]
mov edx, ebx
test eax, eax
jne 0x1002f8ad
cmp edx, esi
jne 0x1002f7c0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002fad6
lea edx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edx, eax
cmp edx, 0x201
jb 0x1002f7ce
jmp 0x1002f7e0
mov eax, dword [ebp - 0x28]
cmp edx, eax
ja 0x1002faf3
test edx, edx
mov dword [ebp - 0x24], edx
je 0x1002f8e4
cmp edx, 0x40000000
jae 0x1002fb0b
movzx eax, byte [0x1006b9a9]
mov edi, edx
add edi, edx
push 2
push edi
call fcn.1000f0c0
add esp, 8
test eax, eax
je 0x1002fb19
mov esi, eax
jmp 0x1002f8eb
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1002f8cc
add eax, eax
push 2
push eax
push dword [ebp - 0x34]
call fcn.1000f0d0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [eax], 0x80000000
jmp 0x1002fac2
mov esi, 2
xor edi, edi
mov eax, dword [ebp - 0x20]
push edi
push eax
push esi
call fcn.10045a70
add esp, 0xc
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1002f910
add eax, eax
push 2
push eax
push dword [ebp - 0x34]
call fcn.1000f0d0
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov edi, 0x1005c2f2
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edx
jmp 0x1002f93e
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x20]
mov word [esi + edx*2], ax
inc edx
mov dword [ebp - 0x40], edx
test edi, edi
je 0x1002fa00
mov eax, dword [ebp - 0x28]
test ax, ax
je 0x1002f990
xor ecx, ecx
cmp edx, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
jne 0x1002f930
mov eax, 0x1005c2f2
mov esi, edx
mov edx, 0xaaaaaaab
mov dword [ebp - 0x10], 1
sub eax, edi
add eax, 0xa
mul edx
mov eax, edx
mov edx, ebx
shr eax, 1
cmp cx, 1
mov dword [ebp - 0x28], ecx
adc edx, 0xffffffff
sub eax, edx
mov edx, esi
inc eax
jmp 0x1002fa28
lea eax, [0x1005c2fa]
cmp edi, eax
je 0x1002fa00
movzx ecx, byte [edi]
movzx eax, cl
test cl, cl
js 0x1002f9a9
inc edi
xor ecx, ecx
jmp 0x1002f950
mov dword [ebp - 0x24], edx
movzx edx, byte [edi + 1]
and eax, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x1002fa56
mov dword [ebp - 0x20], eax
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x1002fa68
movzx ecx, byte [edi + 3]
mov edx, dword [ebp - 0x20]
shl eax, 6
and ecx, 0x3f
and edx, 7
or ecx, eax
shl edx, 0x12
mov eax, ecx
or eax, edx
mov edx, dword [ebp - 0x24]
cmp eax, 0x110000
jne 0x1002fa9f
nop
cmp ebx, 1
je 0x1002fab0
cmp edx, dword [ebp - 0x48]
mov ebx, 1
mov edi, 0
mov eax, 0
mov dword [ebp - 0x20], 0
jne 0x1002f933
inc eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x24], edx
push eax
call fcn.10052dd0
add esp, 4
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x3c]
jmp 0x1002f933
shl eax, 6
add edi, 2
xor ecx, ecx
or eax, edx
mov edx, dword [ebp - 0x24]
jmp 0x1002f950
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
add edi, 3
shl ecx, 0xc
or ecx, eax
mov eax, ecx
cmp eax, 0xffff
jbe 0x1002faa9
mov ecx, eax
add eax, 0xff0000
shr eax, 0xa
and ecx, 0x3ff
or eax, 0xd800
or ecx, 0xdc00
jmp 0x1002f950
add edi, 4
cmp eax, 0xffff
ja 0x1002fa7f
xor ecx, ecx
jmp 0x1002f950
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x48]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x1005c774
push 0x28
push 0x1005a6e4
call fcn.10053850
add esp, 0xc
jmp 0x1002fb2b
mov dword [ebp - 0x10], 0
push 0x1005c764
push eax
push edx
call fcn.10053bb0
add esp, 0xc
jmp 0x1002fb2b
mov dword [ebp - 0x10], 0
call fcn.1003b3e0
jmp 0x1002fb2b
mov dword [ebp - 0x10], 0
push edi
push 2
call fcn.100536e0
add esp, 8
ud2