Function at 0x403750
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0x45e508
xor ebx, ebx
push str.RunCmdCount
push str.BeginAction
mov byte [esp + 0x30], bl
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x18]
push 0x46778c
push ecx
push str.RunCmdCount
push str.BeginAction
call ebp
push esi
push ebx
push str.RunCmdCount
push str.BeginAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
inc eax
mov dword [esp + 0x10], 1
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x403837
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x11c]
push edx
push str.cmd_d
push eax
mov byte [esp + 0x128], bl
mov byte [esp + 0x24], bl
call fcn.0042018d
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push esi
push 0x104
push ecx
push 0x45e508
push edx
push str.BeginAction
call edi
lea eax, [esp + 0x18]
push 0x46778c
lea ecx, [esp + 0x120]
push eax
push ecx
push str.BeginAction
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4037c9
push esi
lea edx, [esp + 0x1c]
push 0x104
push edx
push 0x45e508
push str.RunCmdCount
push str.SuccAction
mov byte [esp + 0x30], bl
call edi
lea eax, [esp + 0x18]
push 0x46778c
push eax
push str.RunCmdCount
push str.SuccAction
call ebp
push esi
push ebx
push str.RunCmdCount
push str.SuccAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
inc eax
mov dword [esp + 0x10], 1
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x4038ff
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
push str.cmd_d
push edx
mov byte [esp + 0x128], bl
mov byte [esp + 0x24], bl
call fcn.0042018d
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c]
push esi
push 0x104
push eax
push 0x45e508
push ecx
push str.SuccAction
call edi
lea edx, [esp + 0x18]
push 0x46778c
lea eax, [esp + 0x120]
push edx
push eax
push str.SuccAction
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403891
push esi
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push 0x45e508
push str.RunCmdCount
push str.ExitAction
mov byte [esp + 0x30], bl
call edi
lea edx, [esp + 0x18]
push 0x46778c
push edx
push str.RunCmdCount
push str.ExitAction
call ebp
push esi
push ebx
push str.RunCmdCount
push str.ExitAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
inc eax
mov dword [esp + 0x10], 1
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x4039c7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x11c]
push eax
push str.cmd_d
push ecx
mov byte [esp + 0x128], bl
mov byte [esp + 0x24], bl
call fcn.0042018d
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push esi
push 0x104
push edx
push 0x45e508
push eax
push str.ExitAction
call edi
lea ecx, [esp + 0x18]
push 0x46778c
lea edx, [esp + 0x120]
push ecx
push edx
push str.ExitAction
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403959
push esi
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0x45e508
push str.RunCmdCount
push str.FailAction
mov byte [esp + 0x30], bl
call edi
lea ecx, [esp + 0x18]
push 0x46778c
push ecx
push str.RunCmdCount
push str.FailAction
call ebp
push esi
push ebx
push str.RunCmdCount
push str.FailAction
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
inc eax
mov dword [esp + 0x10], 1
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x403a8f
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x11c]
push edx
push str.cmd_d
push eax
mov byte [esp + 0x128], bl
mov byte [esp + 0x24], bl
call fcn.0042018d
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push esi
push 0x104
push ecx
push 0x45e508
push edx
push str.FailAction
call edi
lea eax, [esp + 0x18]
push 0x46778c
lea ecx, [esp + 0x120]
push eax
push ecx
push str.FailAction
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403a21
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret