Function at 0x1003bff4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x100410f8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x440], edx
xor edx, edx
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x428], edx
mov edi, edx
test eax, eax
je 0x1003c079
mov dword [eax], edx
test ecx, ecx
je 0x1003c41a
test esi, esi
je 0x1003c41a
mov ebx, dword [ecx]
jmp 0x1003c410
cmp dword [ebx + 4], 0
je 0x1003c29b
push dword [ebx + 4]
push esi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1003c299
mov eax, dword [ebx + 0x18]
and eax, 0xf
jne 0x1003c0be
xor ecx, ecx
inc ecx
mov dword [ebp - 0x428], ecx
push dword [ebx]
neg eax
sbb eax, eax
xor ecx, ecx
and edi, eax
mov eax, dword [ebp - 0x424]
cmp cx, word [eax]
je 0x1003c205
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1003c0f3
xor edx, edx
inc eax
mov edi, edx
mov dword [ebp - 0x420], eax
jmp 0x1003c2cf
xor eax, eax
mov dword [ebp - 0x430], eax
mov esi, eax
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1003c1d8
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x41c]
call fcn.1003b442
push 0x1000cc80
lea ecx, [ebp - 0x214]
call fcn.1003d06b
push 0x1000cca0
lea ecx, [ebp - 0x41c]
call fcn.1003d06b
push esi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x424]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
neg eax
sbb esi, esi
lea eax, [ebp - 0x41c]
push 0x104
push eax
push dword [ebp - 0x424]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x214]
push 0x104
push eax
push dword [ebx]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x41c]
push 0x104
push eax
push dword [ebx]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
neg eax
sbb eax, eax
inc eax
add esi, 1
jne 0x1003c1e2
mov esi, dword [ebp - 0x42c]
jmp 0x1003c1da
mov eax, esi
test esi, esi
je 0x1003c2b7
cmp dword [ebp - 0x430], 0
jne 0x1003c1f3
test eax, eax
je 0x1003c2b7
xor edx, edx
xor eax, eax
mov edi, edx
inc eax
mov dword [ebp - 0x420], eax
jmp 0x1003c2bf
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.1003b442
mov edi, eax
test edi, edi
js 0x1003c2b7
mov ecx, dword [ebx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x43c]
jne 0x1003c224
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x216]
je 0x1003c256
push 0x10005c0c
lea ecx, [ebp - 0x214]
call fcn.1003d06b
mov edi, eax
test edi, edi
js 0x1003c2b7
push esi
lea ecx, [ebp - 0x214]
call fcn.1003d06b
mov edi, eax
test edi, edi
js 0x1003c2b7
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x214]
push eax
mov edx, 0x104
call fcn.1003b442
mov edi, eax
test edi, edi
js 0x1003c2b7
xor eax, eax
xor edi, edi
inc eax
inc edi
mov dword [ebp - 0x420], eax
xor edx, edx
jmp 0x1003c2bf
xor edx, edx
cmp dword [ebx + 8], 0
je 0x1003c2b9
push dword [ebx + 8]
push esi
call sub.msvcrt.dll__wcsicmp
pop ecx
xor edx, edx
pop ecx
test eax, eax
jne 0x1003c2b9
jmp 0x1003c1f5
xor edx, edx
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x1003c2cf
cmp dword [ebp - 0x428], eax
je 0x1003c407
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0xc], edx
je 0x1003c2eb
mov ecx, ebx
call fcn.1003b9e7
xor edx, edx
test eax, eax
jne 0x1003c3f8
mov ecx, dword [ebp - 0x448]
mov eax, dword [ebx + 0x18]
and eax, 0xf
mov dword [ecx], eax
mov ecx, dword [ebp - 0x44c]
test ecx, ecx
je 0x1003c308
mov eax, dword [ebx + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1003c36e
push 2
lea edx, [ecx + 2]
xor esi, esi
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x1003c317
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.10014d5b
mov esi, eax
test esi, esi
je 0x1003c365
push dword [ebx + 0xc]
mov edx, edi
mov ecx, esi
call fcn.1003b442
mov edi, eax
xor edx, edx
test edi, edi
js 0x1003c3f8
mov eax, dword [ebp - 0x434]
mov dword [eax], esi
jmp 0x1003c376
mov edi, 0x8007000e
xor edx, edx
jmp 0x1003c376
mov eax, dword [ebp - 0x434]
mov dword [eax], edx
test edi, edi
js 0x1003c3f8
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1003c3dc
push 2
lea edx, [ecx + 2]
xor esi, esi
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x1003c389
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.10014d5b
mov esi, eax
test esi, esi
je 0x1003c3d3
push dword [ebx + 0x10]
mov edx, edi
mov ecx, esi
call fcn.1003b442
mov edi, eax
xor edx, edx
test edi, edi
js 0x1003c3f8
mov eax, dword [ebp - 0x438]
mov dword [eax], esi
jmp 0x1003c3e4
mov edi, 0x8007000e
xor edx, edx
jmp 0x1003c3e4
mov eax, dword [ebp - 0x438]
mov dword [eax], edx
test edi, edi
js 0x1003c3f8
mov eax, dword [ebp - 0x450]
test eax, eax
je 0x1003c3f8
mov dword [eax], 1
cmp dword [ebp - 0x420], 0
mov dword [ebp - 0x428], edx
jne 0x1003c41f
mov ebx, dword [ebx + 0x30]
mov esi, dword [ebp - 0x454]
test ebx, ebx
jne 0x1003c090
jmp 0x1003c41f
mov edi, 0x80070057
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e130
leave
ret 0x2c