Function at 0x435010
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5814e8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 2
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov ecx, ebx
mov dword [ebp - 0x18], edi
call fcn.00432310
push str.LanguageInfo2.ini
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 4], edi
call fcn.004024e0
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, edi
je 0x43511e
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43511e
test al, 0x10
jne 0x43511e
push str.Load_LanguageInfo_2_r_n
mov eax, 0x5f38b8
call fcn.004053d0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
push eax
call fcn.00403760
add esp, 4
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.00435680
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4350e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x10
push str.LanguageInfo.ini
lea ecx, [ebp - 0x10]
call fcn.00405900
lea ecx, [ebp - 0x44]
call fcn.00464e0c
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 2
call fcn.00413490
add esp, 8
xor esi, esi
cmp dword [ebp - 0x3c], edi
jle 0x4354f2
call fcn.00453e50
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x435555
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
call fcn.00453e50
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x435555
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
xor ecx, ecx
xor edx, edx
xor eax, eax
mov word [ebp - 0x58], cx
mov word [ebp - 0x56], dx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x48], edi
cmp esi, edi
mov byte [ebp - 4], 3
jl 0x43555f
cmp esi, dword [ebp - 0x3c]
jge 0x43555f
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + esi*4]
push eax
lea ecx, [ebp - 0x60]
call fcn.004037d0
push ecx
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.LangID
call fcn.00403320
mov byte [ebp - 4], 4
cmp esi, dword [ebp - 0x3c]
jge 0x43555f
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + esi*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov ebx, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov ebx, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
mov byte [ebp - 4], 3
call fcn.00413730
add esp, 0x10
mov eax, edi
call fcn.00411f90
mov dword [ebp - 0x30], esp
mov edi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.PrimaryLangID
mov word [ebp - 0x58], ax
xor ebx, ebx
call fcn.00403320
mov byte [ebp - 4], 6
cmp esi, dword [ebp - 0x3c]
jge 0x43555f
push ecx
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00403760
mov edx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [edx], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00403760
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
push edi
mov byte [ebp - 4], 3
call fcn.00413730
add esp, 0x10
mov eax, ebx
call fcn.00411f90
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.LangExt
mov word [ebp - 0x56], ax
call fcn.00403320
mov byte [ebp - 4], 8
cmp esi, dword [ebp - 0x3c]
jge 0x43555f
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + esi*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x20]
add esp, 4
push eax
mov byte [ebp - 4], 3
call fcn.00413730
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
call fcn.004037d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43535d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x1c], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.Support
xor ebx, ebx
call fcn.00403320
mov byte [ebp - 4], 0xb
cmp esi, dword [ebp - 0x3c]
jge 0x43555f
push ecx
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + esi*4]
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
call fcn.00403760
mov edx, dword [ebp - 0x1c]
add eax, 0x10
add esp, 4
mov dword [edi], eax
push edx
mov byte [ebp - 4], 3
call fcn.00413730
add esp, 0x10
mov eax, ebx
call fcn.00411f90
mov ebx, eax
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5bb778
mov dword [ebp - 0x54], ebx
call fcn.00403320
mov byte [ebp - 4], 0xd
cmp esi, dword [ebp - 0x3c]
jge 0x43555f
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x2c], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
lea ecx, [ebp - 0x24]
add esp, 4
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 3
call fcn.00413730
mov eax, dword [eax]
push eax
call fcn.00552f48
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10c]
and ecx, ebx
je 0x4354a1
lea edi, [eax + 0x15c]
mov eax, dword [edi + 8]
lea ebx, [ebp - 0x60]
mov ecx, edi
call fcn.00437d00
mov edx, 0x404
cmp word [ebp - 0x58], dx
jne 0x4354a1
mov eax, 0xc04
mov word [ebp - 0x58], ax
mov eax, dword [edi + 8]
mov ecx, edi
call fcn.00437d00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4354c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4354e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
xor edi, edi
cmp esi, dword [ebp - 0x3c]
jl 0x435154
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
cmp dword [ebx + 0x22c], edi
je 0x435512
cmp dword [ebx + 0x228], edi
je 0x435512
movzx esi, word [ebx + 0x228]
mov edi, esi
xor eax, eax
and edi, 0x3ff
cmp dword [ebx + 0x164], eax
mov dword [ebp + 8], 0xffffffff
jle 0x435567
xor edx, edx
test edx, edx
jl 0x43555f
cmp eax, dword [ebx + 0x164]
jge 0x43555f
mov ecx, dword [ebx + 0x160]
add ecx, edx
cmp word [ecx + 8], si
je 0x435564
inc eax
add edx, 0x1c
cmp eax, dword [ebx + 0x164]
jl 0x43552d
jmp 0x435567
push 0x80004005
call fcn.004038e0
call fcn.00453d3c
mov dword [ebp + 8], eax
cmp di, 4
je 0x4355ae
cmp dword [ebp + 8], 0xffffffff
jne 0x4355f8
xor ecx, ecx
cmp dword [ebx + 0x164], ecx
jle 0x4355b4
xor edx, edx
test edx, edx
jl 0x43555f
cmp ecx, dword [ebx + 0x164]
jge 0x43555f
mov eax, dword [ebx + 0x160]
add eax, edx
cmp word [eax + 0xa], di
je 0x4355ab
inc ecx
add edx, 0x1c
cmp ecx, dword [ebx + 0x164]
jl 0x435583
jmp 0x4355b4
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x4355f8
mov eax, dword [ebx + 0x164]
xor ecx, ecx
test eax, eax
jle 0x4355f8
xor edx, edx
test edx, edx
jl 0x43555f
cmp ecx, dword [ebx + 0x164]
jge 0x43555f
mov eax, dword [ebx + 0x160]
add eax, edx
cmp word [eax + 0xa], 9
je 0x4355eb
inc ecx
add edx, 0x1c
cmp ecx, dword [ebx + 0x164]
jl 0x4355c2
jmp 0x4355f8
mov dword [ebp + 8], ecx
mov dword [ebx + 0xc8], 1
mov eax, dword [ebp + 8]
mov dword [ebx + 0x170], eax
cmp eax, 0xffffffff
je 0x43560d
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0046505e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43563c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4