Function at 0x401190
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41d9c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425a94]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x30]
call fcn.0040350e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4011d7
push 0x80004005
call fcn.00401bf0
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.004017b0
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 0x40122c
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.004015c0
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 0x40126f
push esi
mov ecx, edi
call fcn.00401b70
mov eax, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push eax
push 0
push 0x421360
push str.MainSection
call ebx
mov eax, dword [edi]
cmp dword [eax - 8], esi
jge 0x401299
push 0x80070057
call fcn.00401bf0
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 0x4012d3
push 0x80070057
call fcn.00401bf0
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 0x401302
push esi
mov ecx, ebp
call fcn.00401b70
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 0x401328
push 0x80070057
call fcn.00401bf0
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.00401500
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x2c], 3
call fcn.004017b0
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 0x40137a
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 0x40139f
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 0x4013c7
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