Function at 0x647420
Capabilities:
Check if file exists
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70752c
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x82d084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor bl, bl
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xe], bl
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
cmp dword [esi + 0x14], 8
movzx eax, ax
mov dword [ebp - 0x18], eax
mov eax, esi
jb 0x647471
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x6476d4
push 0xf
xor eax, eax
mov dword [ebp - 0x98], 0
push 0x7daa54
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.0042fe00
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], 0
lea edx, [ebp - 0xa8]
mov ebx, 1
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.006476f0
add esp, 8
test al, al
jne 0x647653
push 0xf
xor eax, eax
mov dword [ebp - 0x80], 0
push 0x7daa54
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call fcn.0042fe00
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x90]
push edi
mov ebx, 3
mov ecx, esi
push 0x409
mov dword [ebp - 0x14], ebx
call fcn.006476f0
add esp, 8
test al, al
jne 0x647653
push 0xb
xor eax, eax
mov dword [ebp - 0x68], 0
push 0x7daa3c
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
call fcn.0042fe00
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
lea edx, [ebp - 0x78]
mov ebx, 7
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.006476f0
add esp, 8
test al, al
jne 0x647653
push 0xb
xor eax, eax
mov dword [ebp - 0x50], 0
push 0x7daa3c
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x60], ax
call fcn.0042fe00
push edi
mov dword [ebp - 4], 3
lea edx, [ebp - 0x60]
mov ebx, 0xf
mov ecx, esi
push 0x409
mov dword [ebp - 0x14], ebx
call fcn.006476f0
add esp, 8
test al, al
jne 0x647653
push ebx
xor eax, eax
mov dword [ebp - 0x38], 0
push 0x7daa54
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.0042fe00
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], 4
lea edx, [ebp - 0x48]
mov ebx, 0x1f
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.006476f0
add esp, 8
test al, al
jne 0x647653
push 0xf
xor eax, eax
mov dword [ebp - 0x20], 0
push 0x7daa54
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.0042fe00
push edi
mov dword [ebp - 4], 5
lea edx, [ebp - 0x30]
mov ebx, 0x3f
mov ecx, esi
push 0x409
mov dword [ebp - 0x14], ebx
call fcn.006476f0
add esp, 8
mov byte [ebp - 0xd], 0
test al, al
je 0x647657
mov byte [ebp - 0xd], 1
test bl, 0x20
je 0x647667
lea ecx, [ebp - 0x30]
and ebx, 0xffffffdf
call fcn.0042fd70
test bl, 0x10
je 0x647677
lea ecx, [ebp - 0x48]
and ebx, 0xffffffef
call fcn.0042fd70
test bl, 8
je 0x647687
lea ecx, [ebp - 0x60]
and ebx, 0xfffffff7
call fcn.0042fd70
test bl, 4
je 0x647697
lea ecx, [ebp - 0x78]
and ebx, 0xfffffffb
call fcn.0042fd70
test bl, 2
je 0x6476a7
lea ecx, [ebp - 0x90]
call fcn.0042fd70
lea ecx, [ebp - 0xa8]
call fcn.0042fd70
cmp byte [ebp - 0xd], 0
mov ecx, 1
movzx eax, byte [ebp - 0xe]
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret