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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1228
call fcn.10010620
mov eax, dword [0x10048024]
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.10003d00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002b081
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.1002a8b0
add esp, 0xc
test eax, eax
jne 0x1002b100
push 0x1003e0e0
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 0x1002b129
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.10003ce0
add esp, 8
mov dword [ebp - 0x1218], eax
cmp dword [ebp - 0x1218], 0
je 0x1002b154
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 0x1002b1bb
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 0x1002b1ec
mov eax, dword [ebp - 0x121c]
add eax, 1
mov dword [ebp - 0x121c], eax
mov ecx, dword [ebp - 0x121c]
cmp ecx, dword [ebp - 0x1214]
jge 0x1002b241
mov edx, dword [ebp - 0x121c]
movzx eax, word [ebp + edx*2 - 0x408]
cmp eax, 0x41
jl 0x1002b23f
mov ecx, dword [ebp - 0x121c]
movzx edx, word [ebp + ecx*2 - 0x408]
cmp edx, 0x5a
jg 0x1002b23f
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 0x1002b1dd
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.1002ae00
test eax, eax
je 0x1002b4f6
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 0x1002b2b7
mov ecx, dword [ebp - 0x1224]
add ecx, 1
mov dword [ebp - 0x1224], ecx
mov edx, dword [ebp - 0x1224]
cmp edx, dword [ebp - 0x1220]
jge 0x1002b30c
mov eax, dword [ebp - 0x1224]
movzx ecx, word [ebp + eax*2 - 0x1210]
cmp ecx, 0x41
jl 0x1002b30a
mov edx, dword [ebp - 0x1224]
movzx eax, word [ebp + edx*2 - 0x1210]
cmp eax, 0x5a
jg 0x1002b30a
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 0x1002b2a8
push str.zh_cn.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b336
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 2
jmp 0x1002b4f6
push str.zh_tw.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b360
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 3
jmp 0x1002b4f6
push str.fr.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b38a
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 4
jmp 0x1002b4f6
push str.de.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b3b4
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 5
jmp 0x1002b4f6
push str.jp.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b3de
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 6
jmp 0x1002b4f6
push str.it.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b408
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 7
jmp 0x1002b4f6
push str.es.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b432
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 8
jmp 0x1002b4f6
push str.nl.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b45c
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 9
jmp 0x1002b4f6
push str.tr.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b483
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 0xa
jmp 0x1002b4f6
push str.pt.txt
lea ecx, [ebp - 0x1210]
push ecx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b4aa
mov edx, dword [ebp - 0x1228]
mov dword [edx + 4], 0xb
jmp 0x1002b4f6
push str.nl_be.txt
lea eax, [ebp - 0x1210]
push eax
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b4d1
mov ecx, dword [ebp - 0x1228]
mov dword [ecx + 4], 0xc
jmp 0x1002b4f6
push str.pl.txt
lea edx, [ebp - 0x1210]
push edx
call fcn.10002cc0
add esp, 8
test eax, eax
je 0x1002b4f6
mov eax, dword [ebp - 0x1228]
mov dword [eax + 4], 0xd
push 0
lea ecx, [ebp - 0x408]
push ecx
call fcn.1002a680
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret