Function at 0x403690
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4361c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x4481e0]
push ebx
mov ebx, dword [esp + 0x258]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push edi
push ebx
push 0x104
mov dword [esp + 0x258], eax
lea eax, [esp + 0x50]
push eax
push 0x438a07
push str.DefaultPath
mov edi, ecx
push str.Globals
mov dword [esp + 0x30], edi
call ebp
lea eax, [esp + 0x48]
lea ecx, [edi + 4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4036f4
sub eax, esi
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00402430
push ebx
push 0x104
lea eax, [esp + 0x50]
push eax
push 0x438a07
push str.SendInstallUrlHost
push str.Globals
call ebp
lea eax, [esp + 0x48]
lea ecx, [edi + 0xc]
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403730
sub eax, esi
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00402430
push ebx
push 0
push str.ItemCount
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [edi + 0x10], eax
mov esi, 1
je 0x403e12
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x25c], 0
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
cmp dword [edi + 0x10], esi
mov byte [esp + 0x25c], 1
mov dword [esp + 0x20], esi
jl 0x403dc6
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push esi
lea eax, [esp + 0x18]
push str.ItemName_d
push eax
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x4037f0
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x264]
mov ecx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push ecx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x40381b
xor eax, eax
jmp 0x40382f
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403820
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
push 0x438afc
mov dword [ebp - 0xc], eax
push ebp
mov byte [eax + ebp], 0
call fcn.0041b9dd
add esp, 8
test eax, eax
jne 0x40385a
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x1c]
jmp 0x4038a9
push 0x438ae4
push ebp
call fcn.0041b9dd
add esp, 8
test eax, eax
jne 0x403875
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x20]
jmp 0x4038a9
push 0x438ad8
push ebp
call fcn.0041b9dd
add esp, 8
test eax, eax
jne 0x403890
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 0x24]
jmp 0x4038a9
push 0x438ac8
push ebp
call fcn.0041b9dd
add esp, 8
test eax, eax
jne 0x4038ad
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x28]
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x10]
lea ecx, [edi + 4]
push eax
call fcn.00402780
push esi
lea ecx, [esp + 0x18]
push str.ItemDescribe_d
push ecx
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x4038f5
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push edx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x403919
xor eax, eax
jmp 0x40392f
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403920
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
lea eax, [esp + 0x10]
lea ecx, [edi + 8]
push eax
call fcn.00402780
push esi
lea ecx, [esp + 0x18]
push str.ItemVer_d
push ecx
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x403987
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push edx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x4039ab
xor eax, eax
jmp 0x4039bf
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039b0
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
lea eax, [esp + 0x10]
lea ecx, [edi + 0xc]
push eax
call fcn.00402780
push esi
lea ecx, [esp + 0x18]
push str.ItemCab_d
push ecx
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x403a17
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push edx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x403a3b
xor eax, eax
jmp 0x403a4f
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403a40
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
lea eax, [esp + 0x10]
lea ecx, [edi + 0x1c]
push eax
call fcn.00402780
push esi
lea ecx, [esp + 0x18]
push str.ItemCabNum_d
push ecx
call fcn.00402830
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push 0
push edx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
mov dword [edi + 0x10], eax
lea eax, [esp + 0x18]
push str.ItemExeFile_d
push eax
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x403ad0
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push ecx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x403af4
xor eax, eax
jmp 0x403b0f
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b00
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
lea edx, [esp + 0x10]
mov dword [ebp - 0xc], eax
push edx
mov ecx, edi
mov byte [eax + ebp], 0
call fcn.00402780
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x18]
call fcn.00408b00
test eax, eax
push esi
je 0x403b49
push str.ItemRegExeFile64_d
lea ecx, [esp + 0x1c]
push ecx
jmp 0x403b53
push str.ItemRegExeFile_d
lea edx, [esp + 0x1c]
push edx
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x403b83
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push eax
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x403ba7
xor eax, eax
jmp 0x403bbf
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403bb0
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
lea edx, [esp + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [edi + 0x20]
push edx
mov byte [eax + ebp], 0
call fcn.00402780
push esi
lea eax, [esp + 0x18]
push str.ItemParameter_d
push eax
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x403c17
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push ecx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x403c3b
xor eax, eax
jmp 0x403c4f
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c40
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
lea edx, [esp + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [edi + 0x24]
push edx
mov byte [eax + ebp], 0
call fcn.00402780
push esi
lea eax, [esp + 0x18]
push str.ItemHoldFile_d
push eax
call fcn.00402830
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x3e8
add esp, 0xc
or eax, ecx
jge 0x403ca7
push 0x3e8
lea ecx, [esp + 0x14]
call fcn.00401d90
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push 0x104
push ebp
push 0x438a07
push ecx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebp, ebp
jne 0x403ccb
xor eax, eax
jmp 0x403cdf
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403cd0
sub eax, edx
js 0x403f7f
cmp eax, dword [ebp - 8]
jg 0x403f7f
mov dword [ebp - 0xc], eax
push ecx
mov byte [eax + ebp], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [ebp - 0x10]
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x403d1c
cmp eax, dword [esi]
jne 0x403d1c
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x403d52
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x403f7a
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
add eax, 0x10
mov ecx, edi
mov dword [ebx], eax
call fcn.0040fb00
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x30]
add ecx, 0x2c
test eax, eax
jne 0x403d70
xor esi, esi
jmp 0x403d78
mov esi, dword [ecx + 8]
sub esi, eax
sar esi, 2
test eax, eax
je 0x403d95
mov edx, dword [ecx + 0xc]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x403d95
mov eax, dword [ecx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x403da5
mov eax, dword [ecx + 8]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.00402f90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x20], eax
jle 0x4037b1
mov ebx, dword [esp + 0x264]
mov edi, ecx
add ebp, 0xfffffff0
mov byte [esp + 0x25c], 0
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403de9
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
push 0
push str.nShowEndPage
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [edi + 0x14], eax
je 0x403f4e
mov esi, 1
cmp eax, esi
jl 0x403f4e
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x264]
add ebp, 0x40
mov ebx, 2
lea ecx, [esp + 0x24]
call fcn.00401080
push esi
lea eax, [esp + 0x38]
push str.RunExe_Text_d
push eax
mov dword [esp + 0x268], ebx
mov dword [esp + 0x38], 0
call fcn.0041bc2e
add esp, 0xc
push edi
push 0x104
lea ecx, [esp + 0x154]
push ecx
push 0x438a07
lea edx, [esp + 0x44]
push edx
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403ea8
sub eax, ecx
push eax
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402230
push esi
lea ecx, [esp + 0x38]
push str.RunExe_Run_d
push ecx
call fcn.0041bc2e
add esp, 0xc
push edi
push 0x104
lea edx, [esp + 0x154]
push edx
push 0x438a07
lea eax, [esp + 0x44]
push eax
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403f03
sub eax, ecx
push eax
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x30]
call fcn.00402230
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00403610
lea ecx, [esp + 0x24]
mov dword [esp + 0x25c], 0xffffffff
call fcn.004010b0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x14]
inc esi
cmp esi, ecx
jle 0x403e50
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x250]
mov eax, 1
call fcn.0041b28e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret 4
call fcn.00401a70
push 0x80070057
call fcn.00401230
int3