Function at 0x450fa0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462a64
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x494680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.0040f1bd
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00450e10
mov ecx, dword [ebp + 8]
call fcn.00404b10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x451000
mov eax, 1
jmp 0x4511ee
lea ecx, [ebp - 0x18]
call fcn.00404f90
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x104
mov ecx, dword [ebp - 0x10]
sub ecx, 2
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
imul edx, edx, 5
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 8]
call fcn.00404b10
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004021a0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004016e0
mov edx, dword [ebp - 0x10]
sub edx, 2
cmp dword [ebp - 0x24], edx
je 0x45101f
cmp dword [ebp - 0x24], 0
ja 0x451084
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405030
mov eax, dword [ebp - 0x2c]
jmp 0x4511ee
lea ecx, [ebp - 0x18]
call fcn.004013c0
mov dword [ebp - 0x14], eax
push 0x4805ec
lea ecx, [ebp - 0x20]
call fcn.00401a60
mov byte [ebp - 4], 1
push 0x4805f0
lea ecx, [ebp - 0x1c]
call fcn.00401a60
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
jmp 0x4510c3
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 1
cmp dword [ebp - 0x28], ecx
ja 0x4511b3
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
test ecx, ecx
jne 0x451174
lea ecx, [ebp - 0x20]
call fcn.00402e40
movzx edx, al
test edx, edx
jne 0x45116a
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00450f10
lea ecx, [ebp - 0x1c]
call fcn.00402e40
movzx ecx, al
test ecx, ecx
jne 0x451139
lea ecx, [ebp - 0x1c]
call fcn.00404b10
push eax
lea ecx, [ebp - 0x20]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.00404d60
jmp 0x45116a
push str.Attention:_read_an_empty_string_from_resource_file__use_default_English_string_then:
lea ecx, [ebp - 0x30]
call fcn.00401a60
mov byte [ebp - 4], 3
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x30]
push eax
push 1
call fcn.0045c270
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00405030
lea ecx, [ebp - 0x20]
call fcn.00401ef0
jmp 0x4511ae
push 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404960
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x20]
call fcn.004010f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00405030
jmp 0x4510ba
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004016e0
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00405030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00405030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405030
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8