Function at 0x1000d800
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x100450f8]
xor eax, ebp
mov dword [ebp - 4], 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 - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x438], edx
xor edx, edx
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], edx
mov edi, edx
test eax, eax
je 0x1000d885
mov dword [eax], edx
test ecx, ecx
je 0x10025f5f
test esi, esi
je 0x10025f5f
mov ebx, dword [ecx]
test ebx, ebx
je 0x1000d9ac
cmp dword [ebx + 4], 0
je 0x1000d8b6
push dword [ebx + 4]
push esi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x1000d8ef
xor edx, edx
cmp dword [ebx + 8], 0
jne 0x1000d8d9
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1000d92f
cmp dword [ebp - 0x420], eax
jne 0x1000d92f
mov ebx, dword [ebx + 0x30]
mov esi, dword [ebp - 0x44c]
jmp 0x1000d897
push dword [ebx + 8]
push esi
call sub.msvcrt.dll__wcsicmp
pop ecx
xor edx, edx
pop ecx
test eax, eax
jne 0x1000d8bc
jmp 0x10025dbf
mov eax, dword [ebx + 0x18]
and eax, 0xf
je 0x10025cb8
push dword [ebx]
neg eax
sbb eax, eax
xor ecx, ecx
and edi, eax
mov eax, dword [ebp - 0x41c]
cmp cx, word [eax]
je 0x10025dcf
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x10025cc6
xor edx, edx
inc eax
mov edi, edx
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x43c]
cmp dword [eax + 0xc], edx
jne 0x10025e69
mov ecx, dword [ebp - 0x440]
mov eax, dword [ebx + 0x18]
and eax, 0xf
mov dword [ecx], eax
mov ecx, dword [ebp - 0x444]
test ecx, ecx
je 0x1000d95b
mov eax, dword [ebx + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x10025e7f
mov eax, dword [ebp - 0x42c]
mov dword [eax], edx
test edi, edi
js 0x1000d999
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x10025eef
mov eax, dword [ebp - 0x430]
mov dword [eax], edx
test edi, edi
js 0x1000d999
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x1000d999
mov dword [eax], 1
cmp dword [ebp - 0x418], 0
mov dword [ebp - 0x420], edx
je 0x1000d8ce
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10023280
mov esp, ebp
pop ebp
ret 0x2c
xor ecx, ecx
inc ecx
mov dword [ebp - 0x420], ecx
jmp 0x1000d8fb
xor eax, eax
mov dword [ebp - 0x428], eax
mov esi, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10025da2
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x414]
call fcn.1000e4a6
push 0x1000cd40
lea ecx, [ebp - 0x20c]
call fcn.1004181f
push 0x1000cd60
lea ecx, [ebp - 0x414]
call fcn.10041106
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call sub.msvcrt.dll__wcsnicmp
neg eax
push 0x104
sbb esi, esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
call sub.msvcrt.dll__wcsnicmp
neg eax
push 0x104
sbb eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebx]
call sub.msvcrt.dll__wcsnicmp
neg eax
push 0x104
sbb eax, eax
inc eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x414]
push eax
push dword [ebx]
call sub.msvcrt.dll__wcsnicmp
add esp, 0x30
neg eax
sbb eax, eax
inc eax
add esi, 1
jne 0x10025dac
mov esi, dword [ebp - 0x424]
jmp 0x10025da4
mov eax, esi
test esi, esi
je 0x10025e62
cmp dword [ebp - 0x428], 0
jne 0x10025dbd
test eax, eax
je 0x10025e62
xor edx, edx
xor eax, eax
mov edi, edx
inc eax
mov dword [ebp - 0x418], eax
jmp 0x1000d8c2
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.1000e4a6
mov edi, eax
test edi, edi
js 0x10025e62
mov ecx, dword [ebx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x434]
jne 0x10025dea
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x10025e1c
push 0x100076d8
lea ecx, [ebp - 0x20c]
call fcn.1004181f
mov edi, eax
test edi, edi
js 0x10025e62
push esi
lea ecx, [ebp - 0x20c]
call fcn.1004181f
mov edi, eax
test edi, edi
js 0x10025e62
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x20c]
push eax
mov edx, 0x104
call fcn.1000e4a6
mov edi, eax
test edi, edi
js 0x10025e62
xor eax, eax
xor edi, edi
inc eax
inc edi
mov dword [ebp - 0x418], eax
xor edx, edx
jmp 0x1000d8c2
xor edx, edx
jmp 0x1000d8bc
mov ecx, ebx
call fcn.1004151e
xor edx, edx
test eax, eax
jne 0x1000d999
jmp 0x1000d93e
push 2
lea edx, [ecx + 2]
xor esi, esi
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x10025e87
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
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10025ee3
push dword [ebx + 0xc]
mov edx, edi
mov ecx, esi
call fcn.1000e4a6
mov edi, eax
xor edx, edx
test edi, edi
js 0x1000d999
mov eax, dword [ebp - 0x42c]
mov dword [eax], esi
jmp 0x1000d96e
mov edi, 0x8007000e
xor edx, edx
jmp 0x1000d96e
push 2
lea edx, [ecx + 2]
xor esi, esi
pop edi
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x10025ef7
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
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10025f53
push dword [ebx + 0x10]
mov edx, edi
mov ecx, esi
call fcn.1000e4a6
mov edi, eax
xor edx, edx
test edi, edi
js 0x1000d999
mov eax, dword [ebp - 0x430]
mov dword [eax], esi
jmp 0x1000d985
mov edi, 0x8007000e
xor edx, edx
jmp 0x1000d985
mov edi, 0x80070057
jmp 0x1000d9ac