Function at 0x401150
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x422c70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42cc14]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x30]
call fcn.00402245
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401197
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], 0
call section..text
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.00401c00
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.IniConfig.ini
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00401540
add esp, 0xc
mov byte [esp + 0x28], 2
mov eax, dword [edi]
mov ebx, dword [esp + 0x14]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov esi, 0x3e8
sub eax, esi
or eax, ecx
jge 0x40122f
push esi
mov ecx, edi
call fcn.00401ac0
mov eax, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push eax
push 0
push 0x4278b0
push str.MainSection
call ebx
mov eax, dword [edi]
cmp dword [eax - 8], esi
jge 0x401259
push 0x80070057
call fcn.00401cd0
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [eax + 0x3e8], 0
mov ecx, dword [esp + 0x14]
push ecx
push 0
push str.CheckTime
push str.MainSection
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [edi]
cmp dword [eax - 8], esi
jge 0x401293
push 0x80070057
call fcn.00401cd0
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [eax + 0x3e8], 0
mov eax, dword [ebp]
mov edi, dword [esp + 0x14]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x4012c2
push esi
mov ecx, ebp
call fcn.00401ac0
mov eax, dword [ebp]
push edi
push esi
push eax
push 0
push str.ExeName
push str.MainSection
call ebx
mov eax, dword [ebp]
cmp dword [eax - 8], esi
jge 0x4012e8
push 0x80070057
call fcn.00401cd0
mov dword [eax - 0xc], esi
mov ecx, dword [ebp]
push ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [ecx + 0x3e8], 0
call fcn.00401480
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x2c], 3
call fcn.00401c00
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40133a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40135f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401387
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret