Function at 0x4279b6
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 [0x4424f4]
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.00440dbc
pop ecx
xor ecx, ecx
mov dword [ebp - 0x420], ecx
test eax, eax
je 0x427a01
mov ecx, eax
call fcn.004259a1
mov esi, eax
xor ecx, ecx
jmp 0x427a03
mov esi, ecx
test esi, esi
jne 0x427a11
mov eax, 0x8007000e
jmp 0x427c84
push ecx
push ecx
lea eax, [ebp - 0x214]
mov edx, 0x4070b8
push eax
mov ecx, ebx
call fcn.00423955
mov edi, eax
test edi, edi
jns 0x427a47
push 0x4070b8
push 0x4064e8
push 2
pop ebx
push ebx
call fcn.0041e83a
add esp, 0xc
jmp 0x427c5d
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.00425ed0
cmp dword [esi + 0x2c], 1
jne 0x427a92
xor eax, eax
mov edx, 0x40704c
push eax
push ecx
lea eax, [ebp - 0x214]
mov ecx, ebx
push eax
call fcn.00423955
test eax, eax
js 0x427a92
lea eax, [ebp - 0x214]
push 0x40747c
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, 0x407074
push eax
push ecx
lea eax, [ebp - 0x214]
mov ecx, ebx
push eax
call fcn.00423955
mov edi, eax
test edi, edi
jns 0x427ab9
push 0x407074
jmp 0x427a31
cmp dword [esi + 0x2c], 1
push 2
pop ebx
je 0x427b50
mov edi, 0x104
lea eax, [ebp - 0x41c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x427b17
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, word [ebp - 0x420]
jne 0x427ae6
lea eax, [ebp - 0x214]
sub ecx, edx
push eax
lea eax, [ebp - 0x41c]
sar ecx, 1
push eax
push 0x406528
sub edi, ecx
push edi
push eax
call fcn.0040c0e1
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427b35
test al, 0x10
jne 0x427b35
lea eax, [ebp - 0x41c]
jmp 0x427b56
push 0x407074
push 0x40653c
xor edi, edi
push ebx
inc edi
call fcn.0041e83a
add esp, 0xc
jmp 0x427c61
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call fcn.00425fdb
xor eax, eax
mov edx, 0x407454
push eax
push ecx
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x214]
push eax
call fcn.00423955
mov edi, eax
test edi, edi
jns 0x427b8e
push 0x407454
push 0x4064e8
jmp 0x427a39
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.004278a8
xor eax, eax
mov edx, 0x4072bc
push eax
push ecx
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x214]
push eax
call fcn.00423955
test eax, eax
js 0x427c38
lea edi, [esi + 0x14]
test edi, edi
je 0x427c38
cmp dword [edi], 0
je 0x427bd3
push dword [edi]
call fcn.00440db7
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 0x427bdc
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.00440dea
mov dword [edi], eax
pop ecx
test eax, eax
je 0x427c38
mov edx, dword [ebp - 0x420]
lea ecx, [ebp - 0x214]
push ecx
mov ecx, eax
call fcn.0040c040
test eax, eax
jns 0x427c38
cmp dword [edi], 0
je 0x427c38
push dword [edi]
call fcn.00440db7
xor eax, eax
pop ecx
mov dword [edi], eax
xor edi, edi
cmp dword [esi + 4], edi
jne 0x427c44
cmp dword [esi + 0xc], edi
je 0x427c5a
cmp dword [esi + 0x58], ebx
je 0x427c5a
mov ecx, dword [ebp - 0x428]
push edi
push esi
call fcn.00427956
mov edi, eax
jmp 0x427c5d
xor edi, edi
inc edi
test edi, edi
je 0x427c82
mov ecx, esi
call fcn.00425a1a
push esi
call fcn.00440de5
pop ecx
test edi, edi
jns 0x427c82
push edi
push 0x406570
push ebx
call fcn.0041e83a
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4