Function at 0x405bd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x224
mov eax, dword [0x43b17c]
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 0x42e655
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 0x405c20
sub eax, edi
push eax
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00403b60
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 0x405ef9
mov edx, edi
imul edx, edx, 0x1c
add edx, 4
push edx
call fcn.0042493b
add esp, 4
test eax, eax
je 0x405c88
push 0x4036b0
push 0x403710
push edi
lea ebp, [eax + 4]
push 0x1c
push ebp
mov dword [eax], edi
call fcn.0041309e
jmp 0x405c8a
xor ebp, ebp
mov eax, dword [esi]
mov dword [esi + 4], ebp
mov ebp, 1
cmp eax, ebp
jb 0x405ef9
mov edi, 0x1c
push ebp
lea eax, [esp + 0x18]
push str.ItemName_d
push eax
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x42e655
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 0x405ce0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405ce0
sub eax, ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + ecx - 0x1c]
call fcn.004019a0
push ebp
lea edx, [esp + 0x18]
push str.ItemProm_d
push edx
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42e655
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 0x405d35
sub eax, ecx
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
lea ecx, [edi + eax - 0x18]
call fcn.004019a0
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.00413046
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42e655
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 0x405d95
sub eax, ecx
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
lea ecx, [edi + eax - 0x10]
call fcn.004019a0
push ebp
lea ecx, [esp + 0x18]
push str.ItemExist_d
push ecx
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42e655
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 0x405df0
mov edx, dword [esi + 4]
sub eax, ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + edx - 4]
call fcn.004019a0
push ebp
lea eax, [esp + 0x18]
push str.ItemPam_d
push eax
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x42e655
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 0x405e45
sub eax, ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + ecx - 8]
call fcn.004019a0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x405e7d
lea edx, [esp + 0x10]
push edx
push eax
call ecx
cmp dword [esp + 0x10], 1
push ebp
jne 0x405e91
push str.ItemExe64_d
lea eax, [esp + 0x1c]
push eax
jmp 0x405e9b
push str.ItemExe_d
lea ecx, [esp + 0x1c]
push ecx
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42e655
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 0x405ed0
sub eax, edx
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + edx - 0xc]
call fcn.004019a0
mov eax, dword [esi]
inc ebp
add edi, 0x1c
cmp ebp, eax
jbe 0x405ca1
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 0x40602a
lea eax, [edi + edi*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.0042493b
add esp, 4
test eax, eax
je 0x405f4a
push 0x4036f0
push 0x403750
push edi
lea ebp, [eax + 4]
push 0xc
push ebp
mov dword [eax], edi
call fcn.0041309e
jmp 0x405f4c
xor ebp, ebp
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], ebp
mov ebp, 1
cmp eax, ebp
jb 0x40602a
mov edi, 0xc
push ebp
lea edx, [esp + 0x18]
push str.RunExe_Text_d
push edx
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42e655
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 0x405fa0
sub eax, ecx
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x2c]
push edx
lea ecx, [eax + edi - 0xc]
call fcn.004019a0
push ebp
lea ecx, [esp + 0x18]
push str.RunExe_Run_d
push ecx
call fcn.00413046
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42e655
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 0x405ff5
mov edx, dword [esi + 0x18]
sub eax, ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edx + edi - 8]
call fcn.004019a0
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 0x405f64
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00411aac
add esp, 0x224
ret 4