Function at 0x1002cd10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1228
call fcn.10010670
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1228], ecx
mov word [ebp - 0x808], 0
push 0x3fe
push 0
lea eax, [ebp - 0x806]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x408], 0
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x400
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x808]
push eax
call fcn.10003df0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002cda1
mov ecx, dword [ebp - 4]
mov word [ecx], 0
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
add esp, 8
push str.cfg.ini
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
mov word [ebp - 0x1008], 0
push 0x7fe
push 0
lea edx, [ebp - 0x1006]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push str.LANGUAGE
lea ecx, [ebp - 0x408]
push ecx
call fcn.1002c5d0
add esp, 0xc
test eax, eax
jne 0x1002ce20
push 0x100413f0
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.ntdll.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
test eax, eax
jne 0x1002ce49
push str.langen.txt
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.ntdll.dll_wcscpy]
add esp, 8
push 0x3b
lea edx, [ebp - 0x1008]
push edx
call fcn.10003dd0
add esp, 8
mov dword [ebp - 0x1218], eax
cmp dword [ebp - 0x1218], 0
je 0x1002ce74
mov eax, dword [ebp - 0x1218]
mov word [eax], 0
push 0x400
push 0
lea ecx, [ebp - 0x408]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1008]
push edx
lea eax, [ebp - 0x808]
push eax
push str._s_s
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002cedb
lea eax, [ebp - 0x808]
push eax
push str._slangen.txt
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov dword [ebp - 0x1214], eax
mov dword [ebp - 0x121c], 0
jmp 0x1002cf0c
mov eax, dword [ebp - 0x121c]
add eax, 1
mov dword [ebp - 0x121c], eax
mov ecx, dword [ebp - 0x121c]
cmp ecx, dword [ebp - 0x1214]
jge 0x1002cf61
mov edx, dword [ebp - 0x121c]
movzx eax, word [ebp + edx*2 - 0x408]
cmp eax, 0x41
jl 0x1002cf5f
mov ecx, dword [ebp - 0x121c]
movzx edx, word [ebp + ecx*2 - 0x408]
cmp edx, 0x5a
jg 0x1002cf5f
mov eax, dword [ebp - 0x121c]
movzx ecx, word [ebp + eax*2 - 0x408]
add ecx, 0x20
mov edx, dword [ebp - 0x121c]
mov word [ebp + edx*2 - 0x408], cx
jmp 0x1002cefd
mov word [ebp - 0x1210], 0
push 0x206
push 0
lea eax, [ebp - 0x120e]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
push 0x104
lea edx, [ebp - 0x1210]
push edx
mov ecx, dword [ebp - 0x1228]
call fcn.1002cb20
test eax, eax
je 0x1002d294
lea eax, [ebp - 0x1210]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov dword [ebp - 0x1220], eax
mov dword [ebp - 0x1224], 0
jmp 0x1002cfd7
mov ecx, dword [ebp - 0x1224]
add ecx, 1
mov dword [ebp - 0x1224], ecx
mov edx, dword [ebp - 0x1224]
cmp edx, dword [ebp - 0x1220]
jge 0x1002d02c
mov eax, dword [ebp - 0x1224]
movzx ecx, word [ebp + eax*2 - 0x1210]
cmp ecx, 0x41
jl 0x1002d02a
mov edx, dword [ebp - 0x1224]
movzx eax, word [ebp + edx*2 - 0x1210]
cmp eax, 0x5a
jg 0x1002d02a
mov ecx, dword [ebp - 0x1224]
movzx edx, word [ebp + ecx*2 - 0x1210]
add edx, 0x20
mov eax, dword [ebp - 0x1224]
mov word [ebp + eax*2 - 0x1210], dx
jmp 0x1002cfc8
push str.zh_cn.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d056
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 2
jmp 0x1002d294
push str.zh_tw.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d080
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 3
jmp 0x1002d294
push str.fr.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d0aa
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 4
jmp 0x1002d294
push str.de.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d0d4
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 5
jmp 0x1002d294
push str.jp.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d0fe
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 6
jmp 0x1002d294
push str.it.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d128
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 7
jmp 0x1002d294
push str.es.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d152
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 8
jmp 0x1002d294
push str.nl.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d17c
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 9
jmp 0x1002d294
push str.tr.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d1a6
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 0xa
jmp 0x1002d294
push str.pt.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d1d0
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 0xb
jmp 0x1002d294
push str.nl_be.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d1fa
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 0xc
jmp 0x1002d294
push str.pl.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d221
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 0xd
jmp 0x1002d294
push str.ar.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d248
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 0xe
jmp 0x1002d294
push str.ru.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d26f
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 0xf
jmp 0x1002d294
push str.hu.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002d294
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 0x10
push 0
lea ecx, [ebp - 0x408]
push ecx
call fcn.1002c3a0
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret