Function at 0x10024f5
Capabilities:
Get common file path

Disassembly:
push 0x31c
mov eax, 0x10050e4
call fcn.01004a4c
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov edx, 0x1001390
mov ecx, 0x1001388
mov esi, 0x1001384
mov dword [ebp - 0x2ac], eax
mov eax, 0x100137c
mov ebx, 0x1001358
mov edi, 0x1001338
mov dword [ebp - 0x2b0], 0xd
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], 0x1001324
mov dword [ebp - 0x310], edx
mov dword [ebp - 0x30c], 0x1001304
mov dword [ebp - 0x308], ecx
mov dword [ebp - 0x304], 0x1001300
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2fc], 0x10012e8
mov dword [ebp - 0x2f8], edx
mov dword [ebp - 0x2f4], 0x10012c4
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2ec], 0x10012c0
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], 0x10012a8
mov dword [ebp - 0x2e0], edx
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], 0x1001294
mov dword [ebp - 0x2c8], edx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], 0x1001284
je 0x10028c6
cmp dword [ebp - 0x2ac], 0
je 0x10028c6
xor esi, esi
inc esi
mov byte [ebp - 0x2a5], 0
mov byte [ebp - 0x2a6], 0
cmp dword [ebp + 8], esi
jbe 0x10028c6
mov eax, dword [ebp - 0x2ac]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100268d
push 0x1001274
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1002666
mov byte [ebp - 0x2a5], 1
jmp 0x1002687
mov eax, dword [ebp - 0x2ac]
push 0x100126c
push dword [eax + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1002687
mov byte [ebp - 0x2a6], 1
inc esi
cmp esi, dword [ebp + 8]
jb 0x100263e
cmp byte [ebp - 0x2a5], 0
je 0x10028c6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10028ba
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x288]
call fcn.010024c9
lea eax, [ebp - 0x218]
xor esi, esi
push eax
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 4], esi
call fcn.010024c9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.010024c9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.010024c9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.010024c9
push edi
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 4
call fcn.0100246f
mov eax, dword [ebp - 0x284]
push 8
pop edi
cmp dword [ebp - 0x270], edi
jae 0x1002764
lea eax, [ebp - 0x284]
push 0x1001304
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x324], eax
call fcn.0100246f
mov eax, dword [ebp - 0x2a0]
cmp dword [ebp - 0x28c], edi
jae 0x100278e
lea eax, [ebp - 0x2a0]
push 0x10012c4
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x30c], eax
call fcn.0100246f
mov eax, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x10027b8
lea eax, [ebp - 0x24c]
push ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x2f4], eax
call fcn.0100246f
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x10027de
lea eax, [ebp - 0x230]
push ebx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x2dc], eax
call fcn.0100246f
mov eax, dword [ebp - 0x268]
cmp dword [ebp - 0x254], edi
jae 0x1002804
lea eax, [ebp - 0x268]
push 0x84
mov dword [ebp - 0x2c4], eax
call fcn.01004616
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x1002868
mov eax, dword [ebp - 0x2ac]
mov eax, dword [eax]
mov dword [ebx], eax
xor eax, eax
inc eax
cmp byte [ebp - 0x2a6], 0
je 0x100283b
push 2
mov dword [ebx + 4], 0x100126c
pop eax
push 0x1e
pop ecx
lea edi, [ebx + eax*4]
add eax, 0x1e
push ebx
lea esi, [ebp - 0x328]
rep movsd dword es:[edi], dword [esi]
and dword [ebx + eax*4], 0
push eax
call fcn.01001cd0
push ebx
mov dword [ebp - 0x2b0], eax
call fcn.01004605
pop ecx
xor esi, esi
jmp 0x1002874
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2b0], eax
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x26c]
call fcn.01001fd3
push esi
push edi
lea ecx, [ebp - 0x234]
call fcn.01001fd3
push esi
push edi
lea ecx, [ebp - 0x250]
call fcn.01001fd3
push esi
push edi
lea ecx, [ebp - 0x2a4]
call fcn.01001fd3
push esi
push edi
lea ecx, [ebp - 0x288]
call fcn.01001fd3
jmp 0x10028c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
call fcn.01004ade
ret 8