Function at 0x40f030
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x450bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x455e30]
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x40f063
call fcn.0040f292
mov eax, dword [0x455e30]
test eax, eax
je 0x40f27e
mov ecx, dword [0x455e34]
test ecx, ecx
je 0x40f27e
test edi, edi
jl 0x40f27e
cmp edi, ecx
jg 0x40f27e
mov ecx, edi
shl ecx, 2
mov eax, dword [ecx + eax]
mov dword [ebp - 0x434], ecx
test eax, eax
jne 0x40f283
push 0xa
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00424047
add esp, 0xc
push 0x455d20
push 0x400
lea eax, [ebp - 0x428]
push eax
mov esi, str._ErrStr_
push esi
lea eax, [ebp - 0x24]
push eax
push str.STRING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
lea eax, [ebp - 0x428]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x40f0f2
test cl, cl
je 0x40f0ee
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x40f0f2
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x40f0d4
xor eax, eax
jmp 0x40f0f7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40f108
push edi
push str.ELoad_string__d_failed_n
call fcn.00408f5d
pop ecx
pop ecx
inc ebx
push ebx
call fcn.004240c0
mov esi, eax
pop ecx
mov dword [ebp - 0x438], esi
lea ebx, [ebp - 0x428]
mov al, byte [ebx]
inc ebx
cmp al, 0x5c
jne 0x40f25c
mov cl, byte [ebx]
movsx eax, cl
inc ebx
cmp eax, 0x66
jg 0x40f175
je 0x40f170
sub eax, 0x22
je 0x40f16b
sub eax, 5
je 0x40f166
sub eax, 0x31
je 0x40f1f5
sub eax, 4
je 0x40f161
sub eax, 5
je 0x40f15c
dec eax
jne 0x40f19b
mov byte [esi], 8
inc esi
jmp 0x40f11e
mov byte [esi], 7
jmp 0x40f159
mov byte [esi], 0x5c
jmp 0x40f159
mov byte [esi], 0x27
jmp 0x40f159
mov byte [esi], 0x22
jmp 0x40f159
mov byte [esi], 0xc
jmp 0x40f159
sub eax, 0x6e
je 0x40f254
sub eax, 4
je 0x40f24c
dec eax
dec eax
je 0x40f244
dec eax
dec eax
je 0x40f23c
dec eax
dec eax
je 0x40f1f5
mov al, cl
sub al, 0x30
cmp al, 7
ja 0x40f1ee
xor eax, eax
lea edi, [ebp - 0x430]
stosd dword es:[edi], eax
mov al, byte [ebx]
cmp al, 0x30
mov byte [ebp - 0x430], cl
jl 0x40f1d4
cmp al, 0x37
jg 0x40f1d4
inc ebx
mov byte [ebp - 0x42f], al
mov al, byte [ebx]
cmp al, 0x30
jl 0x40f1d4
cmp al, 0x37
jg 0x40f1d4
mov byte [ebp - 0x42e], al
inc ebx
push 8
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00420baa
add esp, 0xc
mov byte [esi], al
jmp 0x40f159
mov byte [esi], cl
jmp 0x40f159
xor eax, eax
lea edi, [ebp - 0x42c]
stosd dword es:[edi], eax
movsx eax, byte [ebx]
push eax
mov byte [ebp - 0x42c], cl
call fcn.00422fed
pop ecx
test eax, eax
je 0x40f232
mov al, byte [ebx]
mov byte [ebp - 0x42b], al
inc ebx
movsx eax, byte [ebx]
push eax
call fcn.00422fed
pop ecx
test eax, eax
je 0x40f232
mov al, byte [ebx]
mov byte [ebp - 0x42a], al
inc ebx
push 0x10
lea eax, [ebp - 0x42c]
jmp 0x40f1dc
mov byte [esi], 0xb
jmp 0x40f159
mov byte [esi], 9
jmp 0x40f159
mov byte [esi], 0xd
jmp 0x40f159
mov byte [esi], 0xa
jmp 0x40f159
mov byte [esi], al
inc esi
test al, al
jne 0x40f11e
mov ecx, dword [0x455e30]
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x438]
mov dword [edx + ecx], eax
jmp 0x40f283
mov eax, str._ErrStr_
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420391
leave
ret