Function at 0x402290
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41f258
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x429978]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
push str.CIniFile::StringFromKey
lea ecx, [esp + 0x28]
call fcn.00401120
xor esi, esi
push 0x104
mov dword [esp + 0x38], esi
call fcn.00403b7b
mov ebx, eax
push 0x104
mov dword [esp + 0x1c], ebx
call fcn.00403b7b
push 0x20
mov edi, eax
call fcn.00403b7b
add esp, 0xc
test ebx, ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
je 0x4024bb
test ebp, ebp
je 0x4024c8
test edi, edi
je 0x4024bb
push 0x104
push esi
push edi
call fcn.0040d2e0
mov eax, dword [str.VarFromKey]
mov dword [ebx], eax
mov ecx, dword [0x4219c8]
mov dword [ebx + 4], ecx
mov dx, word [0x4219cc]
push ebx
mov word [ebx + 8], dx
mov al, byte [0x4219ce]
lea ecx, [esp + 0x34]
push str.VarFromKeySection:__s
push ecx
mov byte [ebx + 0xa], al
call fcn.004013f0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
add esp, 0x18
push edx
push 0x104
push edi
push str.NOT_FOUND
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOT_FOUND
push edi
call fcn.0040dd3b
add esp, 8
test eax, eax
je 0x4024bb
push 0x42199c
push edi
mov dword [esp + 0x44], 1
call fcn.0040c91b
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x402488
push 0x40
call fcn.00403b7b
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x4024b3
push ebp
call fcn.0040e025
push 0x42199c
push eax
call fcn.0040c91b
add esp, 0xc
test eax, eax
jne 0x4023f3
push edi
lea ecx, [esp + 0x28]
push str.Invalid_string_:__s
push ecx
call fcn.004013f0
add esp, 0xc
jmp 0x4024a2
push eax
mov byte [eax], 0
call fcn.0040e025
push ebp
mov ebx, eax
call fcn.0040e025
push 0x40
push eax
push esi
call fcn.0040db35
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
add esp, 0x14
push edx
push esi
call fcn.00401d20
mov esi, eax
test esi, esi
je 0x40249e
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402430
sub eax, edx
mov edx, eax
mov eax, esi
lea ecx, [eax + 1]
mov dword [esp + 0x44], ecx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402446
sub eax, dword [esp + 0x44]
add edx, 1
push edx
add eax, edi
push ebx
push eax
call fcn.0040e070
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402468
sub eax, edx
push eax
push esi
push ebp
call fcn.0040e070
push esi
call fcn.00403b76
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x40]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402490
jmp 0x4024a2
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4024b3
push eax
call fcn.00403b76
add esp, 4
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
test ebp, ebp
je 0x4024c8
push ebp
call fcn.00403b76
add esp, 4
test edi, edi
je 0x4024d5
push edi
call fcn.00403b76
add esp, 4
test ebx, ebx
je 0x4024e2
push ebx
call fcn.00403b76
add esp, 4
cmp esi, 1
jne 0x4024f9
lea edx, [esp + 0x24]
push str.Read_variable_from_key
push edx
call fcn.004013f0
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0xffffffff
call fcn.004012c0
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc