Function at 0x100038b6
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x298
mov eax, dword [0x10274398]
xor eax, esp
mov dword [esp + 0x294], eax
push ebp
push esi
mov esi, dword [esp + 0x2a4]
xor ebp, ebp
cmp esi, ebp
jne 0x100038f1
push 0x57
push str.AIL:ASE_CheckSystemRebootFlag:Err_d
push 1
call fcn.101d1209
add esp, 0xc
xor eax, eax
jmp 0x10003bd6
mov eax, dword [esi]
mov dword [esp + 0xc], ebp
cmp eax, 0x24
jae 0x10003909
cmp eax, 0x1c
jb 0x100038d9
mov dword [esp + 0xc], 1
push ebx
push edi
push ebp
push ebp
call fcn.10017ee0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
mov ebx, 0x101eeb08
test ebp, ebp
jne 0x10003bb7
lea eax, [esp + 0x9c]
cmp dword [esp + 0x10], ebp
jne 0x10003943
push str._CommonAppData_AhnLabAISAhnInst.ini
jmp 0x10003948
push str._WinSysDir_AhnInst.ini
push 0x104
push eax
call fcn.1000a481
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
push str.AIL:AhnInstIni_s
push 3
call fcn.101d1209
lea eax, [esp + 0xa8]
push eax
call fcn.10007633
add esp, 0x10
test eax, eax
je 0x10003ba8
mov eax, dword [esi + 4]
test eax, eax
je 0x10003a97
cmp word [eax], 0
je 0x10003a97
lea ecx, [esp + 0x9c]
push ecx
push 0
push str.Reboot
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x10003ba8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100039ea
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100039ea
lea edx, [esp + 0x9c]
push edx
push eax
push ecx
push ebx
push str.Time
push dword [esi + 4]
call edi
push dword [esi + 8]
push str.AIL:CheckSystemRebootFlag:Time_s
push 3
call fcn.101d1209
add esp, 0xc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10003a1f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10003a1f
lea edx, [esp + 0x9c]
push edx
push eax
push ecx
push ebx
push 0x101ee768
push dword [esi + 4]
call edi
push dword [esi + 0x10]
push str.AIL:CheckSystemRebootFlag:Task_s
push 3
call fcn.101d1209
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x10003a5b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x10003a5b
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10003a5b
lea edx, [esp + 0x9c]
push edx
push eax
push ecx
push ebx
push str.CmdArg
push dword [esi + 4]
call edi
push dword [esi + 0x1c]
push str.AIL:CheckSystemRebootFlag:CmdArg_s
push 3
call fcn.101d1209
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
push 0
push str.Completed
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.AIL:CheckSystemRebootFlag:Completed_d
push 3
mov dword [esi + 0x18], eax
call fcn.101d1209
push str.AIL:CheckSystemRebootFlag1
push 3
call fcn.101d0efc
add esp, 0x14
jmp 0x10003ba5
lea eax, [esp + 0x9c]
push eax
push 0x40
lea eax, [esp + 0x24]
push eax
push ebx
push str.LastSection
push str.Main
call edi
xor ebp, ebp
cmp word [esp + 0x1c], bp
je 0x10003b97
mov ecx, dword [esi + 8]
cmp ecx, ebp
je 0x10003af7
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x10003af7
lea edx, [esp + 0x9c]
push edx
push eax
push ecx
push ebx
push str.Time
lea eax, [esp + 0x30]
push eax
call edi
push dword [esi + 8]
push str.AIL:CheckSystemRebootFlag:Time_s
push 3
call fcn.101d1209
add esp, 0xc
mov ecx, dword [esi + 0x10]
cmp ecx, ebp
je 0x10003b2e
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x10003b2e
lea edx, [esp + 0x9c]
push edx
push eax
push ecx
push ebx
push 0x101ee768
lea eax, [esp + 0x30]
push eax
call edi
push dword [esi + 0x10]
push str.AIL:CheckSystemRebootFlag:Task_s
push 3
call fcn.101d1209
add esp, 0xc
cmp dword [esp + 0x14], ebp
jne 0x10003b6b
mov ecx, dword [esi + 0x1c]
cmp ecx, ebp
je 0x10003b6b
mov eax, dword [esi + 0x20]
cmp eax, ebp
je 0x10003b6b
lea edx, [esp + 0x9c]
push edx
push eax
push ecx
push ebx
push str.CmdArg
lea eax, [esp + 0x30]
push eax
call edi
push dword [esi + 0x1c]
push str.AIL:CheckSystemRebootFlag:CmdArg_s
push 3
call fcn.101d1209
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
push ebp
push str.Completed
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.AIL:CheckSystemRebootFlag:Completed_d
push 3
mov dword [esi + 0x18], eax
call fcn.101d1209
add esp, 0xc
push str.AIL:CheckSystemRebootFlag1
push 3
call fcn.101d0efc
pop ecx
pop ecx
xor ebp, ebp
inc ebp
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10003927
push 0
push dword [esp + 0x1c]
call fcn.10017ee0
push ebp
push str.AIL:ASE_CheckSystemRebootFlag___d
push 3
call fcn.101d1209
add esp, 0x14
pop edi
mov eax, ebp
pop ebx
mov ecx, dword [esp + 0x29c]
pop esi
pop ebp
xor ecx, esp
call fcn.101d14d7
add esp, 0x298
ret