Function at 0x401eb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x72c360]
mov dword [ebp - 0xc08], eax
push 0x7fc
push 0
lea ecx, [ebp - 0xc04]
push ecx
call fcn.005f46f0
add esp, 0xc
mov dword [ebp - 0xc14], 0
mov edx, dword [ebp + 8]
push edx
call fcn.0060a1dc
add esp, 4
mov dword [ebp - 0xc18], eax
mov eax, dword [ebp - 0xc18]
mov dword [ebp - 0xc10], eax
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
cmp ecx, 0x5c
je 0x401f31
mov edx, dword [ebp - 0xc18]
mov dword [ebp - 0xc10], edx
jmp 0x4020e8
push 0xc
push 0x716910
mov eax, dword [ebp + 8]
push eax
call fcn.0060ee47
add esp, 0xc
test eax, eax
jne 0x401f91
push 0x400
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
jne 0x401f68
mov eax, 0xfffffff2
jmp 0x4021d3
lea edx, [ebp - 0xc08]
push edx
call fcn.0060a1dc
add esp, 4
mov dword [ebp - 0xc14], eax
mov eax, dword [ebp - 0xc10]
sub eax, 0xb
mov dword [ebp - 0xc10], eax
jmp 0x4020e8
push 4
push 0x71692c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0060ee47
add esp, 0xc
test eax, eax
jne 0x401fbc
mov edx, dword [ebp - 0xc10]
sub edx, 4
mov dword [ebp - 0xc10], edx
jmp 0x4020e8
mov dword [ebp - 0xc1c], 0
push 0x400
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [ebp - 0xc0c], eax
cmp dword [ebp - 0xc0c], 0
jne 0x401fec
jmp 0x4020c6
mov ecx, dword [ebp - 0xc0c]
movzx edx, word [ebp + ecx*2 - 0xc0a]
cmp edx, 0x5c
jne 0x40200e
mov eax, dword [ebp - 0xc0c]
sub eax, 1
mov dword [ebp - 0xc0c], eax
cmp dword [ebp - 0xc0c], 3
jb 0x40203a
mov ecx, dword [ebp + 8]
push ecx
call fcn.0060a1dc
add esp, 4
add eax, 2
cmp dword [ebp - 0xc0c], eax
ja 0x40203a
cmp dword [ebp - 0xc0c], 0x400
jb 0x40203f
jmp 0x4020c6
mov edx, dword [ebp - 0xc0c]
sub edx, 2
push edx
mov eax, 2
shl eax, 1
lea ecx, [ebp + eax - 0xc08]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0060ee47
add esp, 0xc
test eax, eax
je 0x40206a
jmp 0x4020c6
mov eax, dword [ebp - 0xc0c]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 4]
cmp edx, 0x5c
je 0x402091
mov eax, dword [ebp - 0xc0c]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 4]
test edx, edx
je 0x402091
jmp 0x4020c6
mov eax, dword [ebp - 0xc0c]
mov dword [ebp - 0xc14], eax
mov ecx, dword [ebp - 0xc0c]
sub ecx, 2
mov edx, dword [ebp - 0xc10]
sub edx, ecx
mov dword [ebp - 0xc10], edx
mov dword [ebp - 0xc1c], 1
xor eax, eax
jne 0x401fc6
cmp dword [ebp - 0xc1c], 0
jne 0x4020e8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401ae0
add esp, 0xc
jmp 0x4021d3
mov ecx, dword [ebp - 0xc14]
add ecx, dword [ebp - 0xc10]
cmp dword [ebp + 0x10], ecx
jge 0x402103
mov eax, 0xffffffe4
jmp 0x4021d3
lea edx, [ebp - 0xc08]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00601419
add esp, 8
mov ecx, dword [ebp - 0xc18]
sub ecx, dword [ebp - 0xc10]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0060a1ab
add esp, 8
push 0x7e
mov edx, dword [ebp + 0xc]
push edx
call fcn.005f4634
add esp, 8
test eax, eax
je 0x4021d1
xor eax, eax
mov word [ebp - 0x408], ax
push 0x400
push 0
lea ecx, [ebp - 0x406]
push ecx
call fcn.005f46f0
add esp, 0xc
push 0x200
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
test eax, eax
je 0x4021d1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp ecx, 0x200
jle 0x40219e
mov dword [ebp - 0xc20], 0x200
jmp 0x4021aa
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp - 0xc20], edx
mov eax, dword [ebp - 0xc20]
push eax
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0060143b
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2 - 2], ax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret