Function at 0x40aaf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0791
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x508274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [ebp - 0x348]
push eax
call fcn.0040a830
push 0x208
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0047c870
add esp, 0xc
lea eax, [ebp - 0x318]
push dword [ebp - 0x348]
push 0x104
push eax
push 0x4dd604
push str.restart_time
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
call fcn.0049afe8
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x350], edx
push eax
call fcn.0049ae36
add esp, 0xc
test eax, eax
jne 0x40ad49
lea eax, [ebp - 0x33c]
push eax
push 0x4de0fc
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.0049a61a
add esp, 0x10
test eax, eax
jne 0x40abcc
mov word [ebp - 0x110], ax
call fcn.0040a750
mov ecx, eax
test ecx, ecx
je 0x40ad53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x40ac0b
movzx eax, ax
lea ecx, [ebp - 0x344]
push eax
call fcn.0040b680
jmp 0x40ac36
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac14
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x344]
call fcn.0040d470
mov eax, dword [ebp - 0x344]
or ebx, 0xffffffff
mov esi, dword [edi + 0xb8]
sub esi, 0x10
mov byte [ebp - 4], 2
lea edx, [eax - 0x10]
cmp edx, esi
je 0x40acaa
cmp dword [esi + 0xc], 0
jl 0x40ac95
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x40ac95
push edx
call fcn.00409540
add esp, 4
mov dword [ebp - 0x34c], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ac8a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34c]
add eax, 0x10
mov dword [edi + 0xb8], eax
jmp 0x40aca4
push dword [eax - 0xc]
lea ecx, [edi + 0xb8]
push eax
call fcn.0040d470
mov eax, dword [ebp - 0x344]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40acc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0xb8]
lea ecx, [ebp - 0x318]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40acf7
test dx, dx
je 0x40acf3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40acf7
add eax, 4
add ecx, 4
test dx, dx
jne 0x40acd1
xor eax, eax
jmp 0x40acfc
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x348]
sete byte [ebp - 0x33d]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ad27
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x33d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00473600
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403820
push 0x80004005
call fcn.00403820
int3