Function at 0x405c00
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x224
mov eax, dword [0x43b180]
push ebx
mov ebx, dword [esp + 0x22c]
push ebp
push esi
push edi
push ebx
push 0x104
mov dword [esp + 0x238], eax
lea eax, [esp + 0x134]
push eax
push 0x42e60c
push str.DefaultPath
push str.Global
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x12c]
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c50
sub eax, edi
push eax
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00403d20
push ebx
push 0
push str.ItemCount
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
test edi, edi
mov dword [esi], edi
je 0x405f29
mov edx, edi
imul edx, edx, 0x1c
add edx, 4
push edx
call fcn.004242eb
add esp, 4
test eax, eax
je 0x405cb8
push 0x403870
push 0x4038d0
push edi
lea ebp, [eax + 4]
push 0x1c
push ebp
mov dword [eax], edi
call fcn.004129be
jmp 0x405cba
xor ebp, ebp
mov eax, dword [esi]
mov dword [esi + 4], ebp
mov ebp, 1
cmp eax, ebp
jb 0x405f29
mov edi, 0x1c
push ebp
lea eax, [esp + 0x18]
push str.ItemName_d
push eax
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x42e60c
lea edx, [esp + 0x24]
push edx
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
jmp 0x405d10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405d10
sub eax, ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + ecx - 0x1c]
call fcn.00401680
push ebp
lea edx, [esp + 0x18]
push str.ItemProm_d
push edx
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42e60c
lea ecx, [esp + 0x24]
push ecx
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405d65
sub eax, ecx
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
lea ecx, [edi + eax - 0x18]
call fcn.00401680
mov ecx, dword [esi + 4]
push ebp
lea edx, [esp + 0x18]
push str.ItemCab_d
push edx
mov dword [edi + ecx - 0x14], 1
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42e60c
lea ecx, [esp + 0x24]
push ecx
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405dc5
sub eax, ecx
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
lea ecx, [edi + eax - 0x10]
call fcn.00401680
push ebp
lea ecx, [esp + 0x18]
push str.ItemExist_d
push ecx
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42e60c
lea eax, [esp + 0x24]
push eax
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405e20
mov edx, dword [esi + 4]
sub eax, ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + edx - 4]
call fcn.00401680
push ebp
lea eax, [esp + 0x18]
push str.ItemPam_d
push eax
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x42e60c
lea edx, [esp + 0x24]
push edx
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405e75
sub eax, ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + ecx - 8]
call fcn.00401680
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x405ead
lea edx, [esp + 0x10]
push edx
push eax
call ecx
cmp dword [esp + 0x10], 1
push ebp
jne 0x405ec1
push str.ItemExe64_d
lea eax, [esp + 0x1c]
push eax
jmp 0x405ecb
push str.ItemExe_d
lea ecx, [esp + 0x1c]
push ecx
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42e60c
lea eax, [esp + 0x24]
push eax
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f00
sub eax, edx
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + edx - 0xc]
call fcn.00401680
mov eax, dword [esi]
inc ebp
add edi, 0x1c
cmp ebp, eax
jbe 0x405cd1
push ebx
push 0
push str.nShowEndPage
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
test edi, edi
mov dword [esi + 0x14], edi
je 0x40605a
lea eax, [edi + edi*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.004242eb
add esp, 4
test eax, eax
je 0x405f7a
push 0x4038b0
push 0x403910
push edi
lea ebp, [eax + 4]
push 0xc
push ebp
mov dword [eax], edi
call fcn.004129be
jmp 0x405f7c
xor ebp, ebp
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], ebp
mov ebp, 1
cmp eax, ebp
jb 0x40605a
mov edi, 0xc
push ebp
lea edx, [esp + 0x18]
push str.RunExe_Text_d
push edx
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42e60c
lea ecx, [esp + 0x24]
push ecx
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405fd0
sub eax, ecx
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x2c]
push edx
lea ecx, [eax + edi - 0xc]
call fcn.00401680
push ebp
lea ecx, [esp + 0x18]
push str.RunExe_Run_d
push ecx
call fcn.00412966
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42e60c
lea eax, [esp + 0x24]
push eax
push str.Global
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406025
mov edx, dword [esi + 0x18]
sub eax, ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edx + edi - 8]
call fcn.00401680
mov eax, dword [esi + 0x18]
mov dword [eax + edi - 4], 1
mov eax, dword [esi + 0x14]
inc ebp
add edi, 0xc
cmp ebp, eax
jbe 0x405f94
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004120ce
add esp, 0x224
ret 4