Function at 0x427dd2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x88
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ebx
call fcn.0044180c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x420], ecx
test eax, eax
je 0x427e1d
mov ecx, eax
call fcn.00425d85
mov esi, eax
xor ecx, ecx
jmp 0x427e1f
mov esi, ecx
test esi, esi
jne 0x427e2d
mov eax, 0x8007000e
jmp 0x4280a0
push ecx
push ecx
lea eax, [ebp - 0x214]
mov edx, 0x4070a8
push eax
mov ecx, ebx
call fcn.00423d0d
mov edi, eax
test edi, edi
jns 0x427e63
push 0x4070a8
push 0x4064d8
push 2
pop ebx
push ebx
call fcn.0041ea5f
add esp, 0xc
jmp 0x428079
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.004262ba
cmp dword [esi + 0x2c], 1
jne 0x427eae
xor eax, eax
mov edx, 0x40703c
push eax
push ecx
lea eax, [ebp - 0x214]
mov ecx, ebx
push eax
call fcn.00423d0d
test eax, eax
js 0x427eae
lea eax, [ebp - 0x214]
push 0x40746c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
inc eax
pop ecx
mov dword [esi + 0x5c], eax
xor eax, eax
mov edx, 0x407064
push eax
push ecx
lea eax, [ebp - 0x214]
mov ecx, ebx
push eax
call fcn.00423d0d
mov edi, eax
test edi, edi
jns 0x427ed5
push 0x407064
jmp 0x427e4d
cmp dword [esi + 0x2c], 1
push 2
pop ebx
je 0x427f6c
mov edi, 0x104
lea eax, [ebp - 0x41c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x427f33
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, word [ebp - 0x420]
jne 0x427f02
lea eax, [ebp - 0x214]
sub ecx, edx
push eax
lea eax, [ebp - 0x41c]
sar ecx, 1
push eax
push 0x406518
sub edi, ecx
push edi
push eax
call fcn.0040c0b5
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427f51
test al, 0x10
jne 0x427f51
lea eax, [ebp - 0x41c]
jmp 0x427f72
push 0x407064
push 0x40652c
xor edi, edi
push ebx
inc edi
call fcn.0041ea5f
add esp, 0xc
jmp 0x42807d
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call fcn.004263c5
xor eax, eax
mov edx, 0x407444
push eax
push ecx
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x214]
push eax
call fcn.00423d0d
mov edi, eax
test edi, edi
jns 0x427faa
push 0x407444
push 0x4064d8
jmp 0x427e55
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.00427cc2
xor eax, eax
mov edx, 0x4072ac
push eax
push ecx
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x214]
push eax
call fcn.00423d0d
test eax, eax
js 0x428054
lea edi, [esi + 0x14]
test edi, edi
je 0x428054
cmp dword [edi], 0
je 0x427fef
push dword [edi]
call fcn.00441807
xor eax, eax
pop ecx
mov dword [edi], eax
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, word [ebp - 0x420]
jne 0x427ff8
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0x420], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov dword [edi], eax
pop ecx
test eax, eax
je 0x428054
mov edx, dword [ebp - 0x420]
lea ecx, [ebp - 0x214]
push ecx
mov ecx, eax
call fcn.0040c010
test eax, eax
jns 0x428054
cmp dword [edi], 0
je 0x428054
push dword [edi]
call fcn.00441807
xor eax, eax
pop ecx
mov dword [edi], eax
xor edi, edi
cmp dword [esi + 4], edi
jne 0x428060
cmp dword [esi + 0xc], edi
je 0x428076
cmp dword [esi + 0x58], ebx
je 0x428076
mov ecx, dword [ebp - 0x428]
push edi
push esi
call fcn.00427d72
mov edi, eax
jmp 0x428079
xor edi, edi
inc edi
test edi, edi
je 0x42809e
mov ecx, esi
call fcn.00425dfe
push esi
call fcn.00441835
pop ecx
test edi, edi
jns 0x42809e
push edi
push 0x406560
push ebx
call fcn.0041ea5f
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4