Function at 0x4065b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2254
call fcn.0044c0a0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x800
mov edx, dword [ebp]
xor eax, eax
lea edi, [esp + 0x264]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2268]
push ebx
lea eax, [esp + 0x268]
push 0x1000
push eax
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00405b20
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40690b
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x40690b
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40690b
mov edx, dword [esp + 0x2c]
cmp edx, 0x80
jle 0x40690b
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push str.TargetDir
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4881a0]
mov si, word [eax]
mov dword [esp + 0x10], ecx
neg si
sbb esi, esi
and esi, eax
cmp esi, ebx
je 0x4066a4
mov edx, esi
shr edx, 0x10
jne 0x406672
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.004032e0
jmp 0x4066a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x4066a4
push edi
lea ecx, [esp + 0x14]
call fcn.004036b0
test eax, eax
je 0x4066a4
mov edx, dword [esp + 0x10]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.004029e0
add esp, 0x10
mov eax, dword [0x4881a0]
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
call fcn.0041dc60
mov eax, dword [0x4881a0]
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call fcn.00422030
mov edx, dword [0x4881a0]
mov eax, 0x14
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
or eax, 0xffffffff
push str.Version
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], 0x3e8
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0xb4
call fcn.00406100
mov esi, eax
cmp esi, ebx
jne 0x4067b8
xor eax, eax
jmp 0x4067bf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x50]
call fcn.00403710
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.00406d30
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x226c]
cmp eax, ebx
jne 0x406811
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x20]
push edx
call fcn.0041f640
mov eax, dword [eax]
lea ecx, [esp + 0x58]
push eax
push str._s_s
push ecx
call fcn.00402d60
add esp, 0x10
jmp 0x406826
cmp edi, ebx
jne 0x406826
lea ecx, [esp + 0x30]
call fcn.00409900
test eax, eax
jne 0x4068f9
push ebx
push str.SaveToTemp
lea ecx, [esp + 0x24]
call fcn.00406960
mov edx, dword [esp + 0x2268]
dec eax
neg eax
sbb eax, eax
push edx
inc eax
lea ecx, [esp + 0x34]
mov dword [esp + 0xc4], eax
call fcn.00402c90
lea eax, [esp + 0x30]
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.00407350
lea edx, [esp + 0x30]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.00407980
mov ecx, dword [0x4881a0]
mov esi, 1
mov dword [esp + 0x14], ecx
push esi
lea edx, [esp + 0xd8]
push str.Description_d
push edx
call fcn.0044b699
add esp, 0xc
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x1c]
push eax
call fcn.00406100
push eax
lea ecx, [esp + 0x18]
call fcn.00402c90
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
je 0x4068de
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.00407c90
inc esi
cmp esi, 0x64
jl 0x406885
mov ecx, dword [esp + 0x50]
cmp dword [ecx - 8], ebx
jne 0x40691a
mov edx, dword [esp + 0x74]
cmp dword [edx - 8], ebx
jne 0x40691a
lea ecx, [esp + 0x14]
call fcn.00403680
lea ecx, [esp + 0x30]
call fcn.00406980
lea ecx, [esp + 0x10]
call fcn.00403680
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2254
ret 8
mov ecx, dword [ebp + 0x20]
push edi
call fcn.0041f620
mov edx, dword [eax + 8]
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, eax
call fcn.00407ea0
lea ecx, [esp + 0x14]
call fcn.00403680
lea ecx, [esp + 0x30]
call fcn.00406980
lea ecx, [esp + 0x10]
call fcn.00403680
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2254
ret 8