Function at 0x410940
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4bb928
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
xor eax, eax
mov word [esp + 0x18], ax
xor edi, edi
push 0x1d
mov eax, str.CINIReader::GetNumber___start
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
call fcn.004033f0
mov ecx, esi
push ecx
mov dword [esp + 0x58], edi
call fcn.00403580
or esi, 0xffffffff
mov ebx, 8
add esp, 4
mov dword [esp + 0x54], esi
cmp dword [esp + 0x2c], ebx
jb 0x4109be
mov edx, dword [esp + 0x18]
push edx
call fcn.0047cc0e
add esp, 4
cmp byte [ebp + 0x24], 0
je 0x410b79
cmp dword [ebp + 0x1c], ebx
jb 0x4109d2
mov eax, dword [ebp + 8]
jmp 0x4109d5
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410b79
xor eax, eax
mov word [esp + 0x18], ax
push 0x20
mov eax, str.CINIReader::GetNumber___sSection
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
call fcn.004033f0
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x58], 1
call fcn.00402ec0
add esp, 4
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x2c], ebx
jb 0x410a39
mov edx, dword [esp + 0x18]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov word [esp + 0x18], ax
push 0x22
mov eax, str.CINIReader::GetNumber___sParamName
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
call fcn.004033f0
mov ecx, esi
mov esi, dword [esp + 0x64]
push ecx
mov ecx, esi
mov dword [esp + 0x58], 2
call fcn.00402ec0
add esp, 4
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x2c], ebx
jb 0x410a90
mov edx, dword [esp + 0x18]
push edx
call fcn.0047cc0e
add esp, 4
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x410b3e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x410b3e
cmp dword [ebp + 0x1c], ebx
jb 0x410ab6
mov edx, dword [ebp + 8]
jmp 0x410ab9
lea edx, [ebp + 8]
cmp dword [esi + 0x18], ebx
jb 0x410ac3
mov ecx, dword [esi + 4]
jmp 0x410ac6
lea ecx, [esi + 4]
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x18], ebx
jb 0x410ad4
mov eax, dword [eax + 4]
jmp 0x410ad7
add eax, 4
push edx
push 0xffffffffffffffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, str.CINIReader::GetText___result
lea ecx, [esp + 0x14]
call fcn.004034a0
mov ecx, edi
lea esi, [esp + 0x14]
mov dword [esp + 0x54], 3
call fcn.00402c10
cmp dword [esp + 0x2c], ebx
jb 0x410b18
mov eax, dword [esp + 0x18]
push eax
call fcn.0047cc0e
add esp, 4
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x410b26
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc
mov eax, str.CINIReader::GetNumber___failed_to_read_mutex_is_locked.
lea ecx, [esp + 0x30]
call fcn.004034a0
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x58], 4
call fcn.00403580
add esp, 4
cmp dword [esp + 0x48], ebx
jb 0x410b74
mov edx, dword [esp + 0x34]
push edx
call fcn.0047cc0e
add esp, 4
or eax, 0xffffffff
jmp 0x410b28
mov eax, esi
jmp 0x410b28