Function at 0x104e2b2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov esi, ecx
xor ecx, ecx
push 2
pop edx
mov eax, 0x3f7a0
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
xor ebx, ebx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x104e2fe
mov esi, 0x8007000e
lea ecx, [ebp + 0x18]
call fcn.010061d0
lea ecx, [ebp + 0x1c]
call fcn.010061d0
mov eax, esi
jmp 0x104e4c6
mov eax, dword [0x1061024]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0104d339
mov edi, eax
cmp edi, ebx
jge 0x104e32f
lea ecx, [ebp - 4]
call fcn.010061d0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, edi
jmp 0x104e2e7
mov edi, dword [ebp + 0x10]
mov eax, dword [0x1061024]
mov dword [ebp - 8], eax
cmp edi, 5
je 0x104e35e
cmp edi, 0xd
je 0x104e35e
cmp edi, 0xe
je 0x104e35e
cmp edi, 0x27
je 0x104e35e
mov edi, 0x1001d98
push edi
lea ecx, [ebp - 8]
call fcn.0100864e
jmp 0x104e3d9
push 0x104
lea ecx, [ebp - 8]
call fcn.01007539
cmp eax, ebx
jne 0x104e392
lea ecx, [ebp - 8]
call fcn.010061d0
lea ecx, [ebp - 4]
call fcn.010061d0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, 0x80004003
jmp 0x104e2e7
push eax
push ebx
push ebx
or edi, 0x8000
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x104e3b6
lea ecx, [ebp - 8]
call fcn.010061d0
jmp 0x104e31a
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.01008355
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0104d13c
mov edi, eax
cmp edi, ebx
jl 0x104e3a9
mov edi, 0x1001d98
push edi
lea ecx, [ebp - 0x10]
call fcn.01010421
push edi
lea ecx, [ebp + 0x10]
call fcn.01010421
mov eax, 0x1000
cmp byte [ebp + 0x14], bl
je 0x104e3fa
mov eax, 0x1200
push dword [ebp + 8]
mov edi, dword [ebp + 0x20]
lea ecx, [ebp + 0x1c]
push ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov byte [edi], bl
call fcn.0104de7a
cmp eax, ebx
jl 0x104e47f
mov byte [edi], 1
cmp dword [esi + 4], ebx
jg 0x104e43f
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
push dword [esi]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0104d487
mov esi, eax
cmp esi, ebx
jge 0x104e48b
lea ecx, [ebp + 0x10]
call fcn.010061d0
lea ecx, [ebp - 0x10]
call fcn.010061d0
lea ecx, [ebp - 8]
call fcn.010061d0
lea ecx, [ebp - 4]
call fcn.010061d0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x104e2e7
and eax, 0xffff
cmp eax, 0x4c7
jne 0x104e4d7
lea ecx, [ebp + 0x10]
call fcn.010061d0
lea ecx, [ebp - 0x10]
call fcn.010061d0
lea ecx, [ebp - 8]
call fcn.010061d0
lea ecx, [ebp - 4]
call fcn.010061d0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.010061d0
lea ecx, [ebp + 0x1c]
call fcn.010061d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
push ebx
push eax
lea ecx, [ebp - 4]
call fcn.0104cd67
push 0x7c
lea ecx, [ebp - 4]
call fcn.0104cbe9
cmp eax, 0xffffffff
jne 0x104e4cd
push 0x58
lea eax, [ebp - 0x68]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add esp, 0xc
mov word [eax], cx
mov dword [ebp - 0x68], 0x58
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x3f7a0
mov dword [ebp - 0x34], 0x881004
cmp byte [ebp + 0x14], bl
je 0x104e521
mov dword [ebp - 0x34], 0x881204
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], ebx
cmp dword [eax - 8], ebx
je 0x104e53b
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x68]
push eax
mov byte [edi], bl
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x104e48b
mov byte [edi], 1
cmp byte [ebp + 0x14], bl
je 0x104e580
push dword [ebp - 0xc]
mov ecx, esi
call fcn.0104dd11
mov edi, eax
cmp edi, ebx
jge 0x104e42b
lea ecx, [ebp + 0x10]
call fcn.010061d0
lea ecx, [ebp - 0x10]
call fcn.010061d0
jmp 0x104e3a9
push dword [ebp - 0x4c]
lea ecx, [ebp + 8]
call fcn.01010421
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.010143f9
test eax, eax
lea ecx, [ebp + 8]
setne byte [ebp + 0x17]
call fcn.010061d0
cmp byte [ebp + 0x17], bl
jne 0x104e42b
lea ecx, [ebp + 0x10]
call fcn.010061d0
lea ecx, [ebp - 0x10]
call fcn.010061d0
lea ecx, [ebp - 8]
call fcn.010061d0
lea ecx, [ebp - 4]
call fcn.010061d0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov esi, 0x80004005
jmp 0x104e2e7