Function at 0x406b51
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41ac40
call fcn.00411544
sub esp, 0xc44
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call fcn.00401046
and byte [ebp - 0x450], 0
mov ebx, eax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x44f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebx + 0x1010], 1
jbe 0x406c53
cmp dword [ebx + 0x1418], 0
jne 0x406c53
cmp dword [ebx + 0x1420], 5
je 0x406c53
mov esi, str.TRANSFORMS_
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0x2f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x3c]
lea edi, [ebx + 0x1018]
push eax
push edi
call fcn.00412030
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x406bfd
lea eax, [ebp - 0x3c]
push str.TRANSFORMS
push eax
call fcn.00410fb0
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.00412030
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406c32
lea eax, [ebp - 0x3c]
push eax
call fcn.004119d0
pop ecx
add eax, esi
and byte [esi], 0
push eax
lea eax, [ebx + 0xc10]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x450]
push str._s_s_s__s
push eax
call esi
add esp, 0x18
jmp 0x406c71
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebx + 0xc10]
push eax
push edi
lea eax, [ebp - 0x450]
push str._s_TRANSFORMS__s_
push eax
call esi
add esp, 0x10
jmp 0x406c71
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebx + 0x1018]
push eax
lea eax, [ebp - 0x450]
push 0x41f16c
push eax
call esi
add esp, 0xc
and byte [ebp - 0xc50], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x1420]
dec eax
je 0x406d66
dec eax
je 0x406d48
dec eax
je 0x406d1e
dec eax
je 0x406d07
dec eax
lea eax, [ebp - 0x450]
push eax
push dword [ebp + 8]
push dword [0x41f97c]
je 0x406cc1
push str._s__i___s___s
jmp 0x406d7b
lea eax, [ebp - 0x850]
push str._s__p___s___s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc50]
push dword [ebp + 8]
push str._p__s___s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xc50]
mov ecx, ebx
push 1
push eax
push 0x41f310
call fcn.0040a77e
jmp 0x406d87
lea eax, [ebp - 0x450]
push eax
push dword [ebp + 8]
push dword [0x41f97c]
push str._s__x___s___s
jmp 0x406d7b
lea eax, [ebp - 0x450]
push eax
lea eax, [ebx + 0x1424]
push dword [ebp + 8]
push eax
push dword [0x41f97c]
push str._s__j_s___s___s
lea eax, [ebp - 0x850]
push eax
call esi
add esp, 0x18
jmp 0x406d87
lea eax, [ebp - 0x450]
push eax
lea eax, [ebx + 0x1424]
push dword [ebp + 8]
push eax
push dword [0x41f97c]
push str._s__f_s___s___s
jmp 0x406d3a
lea eax, [ebp - 0x450]
push eax
push dword [ebp + 8]
push dword [0x41f97c]
push str._s__a___s__s
lea eax, [ebp - 0x850]
push eax
call esi
add esp, 0x14
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x406da3
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x450]
push esi
push eax
call fcn.00406fc4
jmp 0x406fb0
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0x10], esi
je 0x406f5f
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp + 0x10], esi
lea eax, [ebp + 0x10]
mov dword [ebp - 4], esi
push eax
push 0x41f560
push 4
push esi
push 0x41b9b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x406e00
mov eax, 0x648
push eax
mov dword [0x424d80], eax
call fcn.0040bd91
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
pop ecx
je 0x406df9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x406fb3
mov dword [ebp - 0x18], esi
cmp dword [ebx + 0x1420], 5
mov byte [ebp - 4], 1
je 0x406e28
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00402aff
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
jmp 0x406e73
and byte [ebp - 0x50], 0
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
push 0x423eb8
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x50]
push 0x32
push eax
push 0x4230e0
push dword [0x41b554]
push dword [0x41b548]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x50]
push 0xffffffffffffffff
push eax
call fcn.00402aff
mov edi, dword [ebp - 0x1c]
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x141c]
cmp eax, esi
je 0x406e90
cmp dword [ebx + 0x1010], 1
jbe 0x406e90
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
call fcn.00408c21
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
lea ecx, [ebx + 0x286c]
mov dword [ebp - 0x14], esi
call fcn.00408b89
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
lea ebx, [ebp - 0x14]
mov edx, dword [ecx]
push ebx
push eax
push esi
push dword [ebp - 0x18]
push ecx
call dword [edx + 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
jne 0x406ee4
cmp eax, esi
je 0x406f2c
or ecx, 0xffffffff
mov dword [ebp - 0x14], ecx
cmp ecx, 0xfffffff8
je 0x406f17
cmp ecx, 0xfffffff9
je 0x406f10
cmp ecx, 0xfffffffc
je 0x406f09
cmp ecx, 0xfffffffd
je 0x406f2c
cmp ecx, esi
je 0x406f2c
push 0x65c
call fcn.0040bd91
pop ecx
jmp 0x406f2c
push 0x65d
jmp 0x406f01
push 0x66c
jmp 0x406f01
push 1
mov ecx, edi
pop eax
mov dword [edi + 0xc], eax
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00406fc4
mov eax, dword [ebp - 0x14]
mov dword [0x424d80], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x406f57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x406fb0
call fcn.0040543c
mov ecx, ebx
call fcn.0040a758
test eax, eax
lea eax, [ebp - 0x850]
push 1
push eax
je 0x406f9d
call fcn.0040c73f
cmp eax, 0xcccccccc
jne 0x406f8e
mov dword [0x424d80], 0x485
push dword [ebp + 8]
mov ecx, edi
call fcn.0040754b
mov dword [edi + 0xc], eax
jmp 0x406fb0
call fcn.0040c81c
test eax, eax
jne 0x406fb0
mov dword [0x424d80], 0x485
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc