Function at 0x405770
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x224
mov eax, dword [0x43a180]
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 0x42d60c
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 0x4057c0
sub eax, edi
push eax
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esi + 0x1c]
call fcn.004037e0
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 0x405a99
mov edx, edi
imul edx, edx, 0x1c
add edx, 4
push edx
call fcn.0042404b
add esp, 4
test eax, eax
je 0x405828
push 0x403330
push 0x403390
push edi
lea ebp, [eax + 4]
push 0x1c
push ebp
mov dword [eax], edi
call fcn.004128be
jmp 0x40582a
xor ebp, ebp
mov eax, dword [esi]
mov dword [esi + 4], ebp
mov ebp, 1
cmp eax, ebp
jb 0x405a99
mov edi, 0x1c
push ebp
lea eax, [esp + 0x18]
push str.ItemName_d
push eax
call fcn.00412866
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x42d60c
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 0x405880
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405880
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.00412866
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42d60c
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 0x4058d5
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.00412866
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42d60c
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 0x405935
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.00412866
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42d60c
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 0x405990
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.00412866
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x30]
push ecx
push 0x42d60c
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 0x4059e5
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 0x405a1d
lea edx, [esp + 0x10]
push edx
push eax
call ecx
cmp dword [esp + 0x10], 1
push ebp
jne 0x405a31
push str.ItemExe64_d
lea eax, [esp + 0x1c]
push eax
jmp 0x405a3b
push str.ItemExe_d
lea ecx, [esp + 0x1c]
push ecx
call fcn.00412866
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42d60c
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 0x405a70
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 0x405841
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 0x405bca
lea eax, [edi + edi*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.0042404b
add esp, 4
test eax, eax
je 0x405aea
push 0x403370
push 0x4033d0
push edi
lea ebp, [eax + 4]
push 0xc
push ebp
mov dword [eax], edi
call fcn.004128be
jmp 0x405aec
xor ebp, ebp
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], ebp
mov ebp, 1
cmp eax, ebp
jb 0x405bca
mov edi, 0xc
push ebp
lea edx, [esp + 0x18]
push str.RunExe_Text_d
push edx
call fcn.00412866
add esp, 0xc
push ebx
push 0x104
lea eax, [esp + 0x30]
push eax
push 0x42d60c
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 0x405b40
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.00412866
add esp, 0xc
push ebx
push 0x104
lea edx, [esp + 0x30]
push edx
push 0x42d60c
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 0x405b95
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 0x405b04
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00411fce
add esp, 0x224
ret 4