Function at 0x42c74c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x464e52
call fcn.004571ec
sub esp, 0x2e4
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 1
mov esi, 0x1fff
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x28], esi
call fcn.00457805
cmp eax, edi
mov dword [ebp - 0x34], eax
setne cl
mov byte [ebp - 0x38], cl
push esi
mov byte [ebp - 4], 2
call fcn.00457805
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x20], eax
setne cl
mov byte [ebp - 0x24], cl
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x1c]
push edx
push str.OPTYPE_INI
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0x38]
test eax, eax
jge 0x42c810
cmp byte [ebp - 0x24], 0
je 0x42c7d3
push dword [ebp - 0x20]
call fcn.00451b84
pop ecx
cmp byte [ebp - 0x38], 0
je 0x42c7e2
push dword [ebp - 0x34]
call fcn.00451b84
pop ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00417cf9
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x42c7ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x18], edi
je 0x42c830
lea ecx, [ebp - 0x18]
call fcn.00417cf9
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jl 0x42cf23
lea eax, [ebp - 0x238]
push edi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00417bd2
mov esi, eax
cmp word [esi], 8
mov byte [ebp - 4], 5
je 0x42c86f
push edi
push 8
mov ecx, esi
call fcn.0041894f
mov esi, dword [esi + 8]
lea eax, [ebp - 0x3a]
push edi
push eax
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x469494
mov dword [ebp - 0x68], 0x46948c
call fcn.00410de9
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 7
push eax
call ebx
cmp eax, edi
jge 0x42c8ab
push eax
call fcn.00451dc4
lea eax, [ebp - 0x220]
push 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00417bd2
mov esi, eax
cmp word [esi], 8
mov byte [ebp - 4], 8
je 0x42c8d2
push edi
push 8
mov ecx, esi
call fcn.0041894f
mov esi, dword [esi + 8]
lea eax, [ebp - 0x39]
push 1
push eax
push esi
lea ecx, [ebp - 0x120]
call fcn.00410de9
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xa
push eax
call ebx
cmp eax, edi
jge 0x42c8fe
push eax
call fcn.00451dc4
lea eax, [ebp - 0x1f0]
push 2
push eax
lea ecx, [ebp - 0x18]
call fcn.00417bd2
mov esi, eax
cmp word [esi], 8
mov byte [ebp - 4], 0xb
je 0x42c925
push edi
push 8
mov ecx, esi
call fcn.0041894f
mov esi, dword [esi + 8]
lea eax, [ebp - 0x2d]
push 1
push eax
push esi
lea ecx, [ebp - 0x198]
call fcn.00410de9
lea eax, [ebp - 0x1f0]
mov byte [ebp - 4], 0xd
push eax
call ebx
cmp eax, edi
jge 0x42c951
push eax
call fcn.00451dc4
lea eax, [ebp - 0x1d8]
push 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00417bd2
mov esi, eax
cmp word [esi], 8
mov byte [ebp - 4], 0xe
je 0x42c978
push edi
push 8
mov ecx, esi
call fcn.0041894f
mov esi, dword [esi + 8]
lea eax, [ebp - 0x3b]
push 1
push eax
push esi
lea ecx, [ebp - 0x170]
call fcn.00410de9
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 0x10
push eax
call ebx
cmp eax, edi
jge 0x42c9a4
push eax
call fcn.00451dc4
push dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x88]
push eax
call fcn.0042d088
cmp dword [ebp - 0x164], edi
jne 0x42c9f2
lea ecx, [ebp - 0x198]
call fcn.00405599
lea ecx, [ebp - 0x120]
mov ebx, eax
call fcn.00405599
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.00405599
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x42cd57
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x120]
call fcn.00405599
lea ecx, [ebp - 0x88]
mov ebx, eax
call fcn.00405599
push eax
push dword [ebp - 0x28]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffffe
cmp ecx, eax
jne 0x42ca93
mov eax, dword [ebp - 0x28]
lea esi, [eax + eax]
test esi, esi
mov dword [ebp - 0x28], esi
je 0x42ca93
push esi
call fcn.00457805
pop ecx
mov dword [ebp - 0x54], eax
test eax, eax
setne cl
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], cl
push eax
lea ecx, [ebp - 0x38]
call fcn.0041f494
cmp byte [ebp - 0x58], 0
je 0x42ca5d
push dword [ebp - 0x54]
call fcn.00451b84
pop ecx
push esi
call fcn.00457805
pop ecx
mov dword [ebp - 0x4c], eax
test eax, eax
setne cl
lea eax, [ebp - 0x50]
mov byte [ebp - 0x50], cl
push eax
lea ecx, [ebp - 0x24]
call fcn.0041f494
cmp byte [ebp - 0x50], 0
je 0x42c9f2
push dword [ebp - 0x4c]
call fcn.00451b84
pop ecx
jmp 0x42c9f2
mov ebx, dword [ebp - 0x34]
cmp byte [ebx], 0
mov dword [ebp - 0x40], ebx
je 0x42cd2a
lea eax, [ebp - 0x2e]
push 1
push eax
push ebx
lea ecx, [ebp - 0x148]
call fcn.00404c93
push 1
lea eax, [ebp - 0x44]
push 0
push eax
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x44], 0x3d
call fcn.00407fcf
mov esi, eax
lea eax, [ebp - 0x30]
push 1
push eax
push esi
lea eax, [ebp - 0x148]
push 0
push eax
lea ecx, [ebp - 0xf8]
call fcn.00407f3c
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x194]
neg eax
sbb eax, eax
mov byte [ebp - 4], 0x12
and eax, ecx
lea ecx, [ebp - 0xf8]
neg ecx
push eax
lea eax, [ebp - 0xf4]
sbb ecx, ecx
and ecx, eax
call fcn.004115be
test eax, eax
jne 0x42cce4
lea eax, [ebp - 0x2f]
push 1
push eax
inc esi
push dword [0x46950c]
lea eax, [ebp - 0x148]
lea ecx, [ebp - 0xd0]
push esi
push eax
call fcn.00407f3c
lea esi, [ebp - 0x170]
lea eax, [ebp - 0x16c]
neg esi
sbb esi, esi
lea ecx, [ebp - 0xd0]
and esi, eax
lea eax, [ebp - 0xcc]
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
mov byte [ebp - 4], 0x13
call fcn.004115be
test eax, eax
jne 0x42cb8b
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x12
call fcn.004060f2
jmp 0x42ccfc
push 0
push esi
lea ecx, [ebp - 0xcc]
call fcn.0042d375
mov esi, eax
mov eax, dword [0x46950c]
cmp eax, esi
je 0x42ccd5
push eax
mov eax, dword [ebp - 0x164]
add eax, esi
lea ecx, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00408213
mov ebx, eax
push esi
lea eax, [ebp - 0x2a0]
push 0
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x14
call fcn.00408213
mov esi, eax
lea eax, [ebp - 0xf8]
push 0x47e6a8
push eax
lea eax, [ebp - 0x2c8]
push eax
mov byte [ebp - 4], 0x15
call fcn.00415060
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x16
push eax
call fcn.0041ab79
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 0x17
push eax
call fcn.0041ab79
add esp, 0xc
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x1c
call fcn.004060f2
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 0x1b
call fcn.004060f2
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0x1a
call fcn.004060f2
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x19
call fcn.004060f2
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c0]
call fcn.00405599
add esi, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x1c0]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1c0]
lea edi, [edi + eax + 1]
mov byte [ebp - 4], 0x13
call fcn.004060f2
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x12
call fcn.004060f2
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x11
call fcn.004060f2
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x10
call fcn.004060f2
mov ebx, dword [ebp - 0x40]
jmp 0x42cd1a
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x12
call fcn.004060f2
mov eax, dword [ebp - 0x20]
push ebx
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x11
call fcn.004060f2
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x10
call fcn.004060f2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
jmp 0x42ca96
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x120]
and byte [eax + edi], 0
mov esi, dword [ebp - 0x20]
call fcn.00405599
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.00405599
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
xor edi, edi
lea eax, [ebp - 0x250]
push 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00417bd2
mov ecx, eax
mov byte [ebp - 4], 0x1d
call fcn.004187cd
mov bl, al
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 0x10
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, edi
jge 0x42cd90
push eax
call fcn.00451dc4
test bl, bl
je 0x42cde6
lea ecx, [ebp - 0x120]
call fcn.00405599
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.00405599
push eax
lea eax, [ebp - 0x5c]
push 3
push eax
push 0x485ac0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x42cde6
lea ecx, [ebp - 0x120]
call fcn.00405599
lea ecx, [ebp - 0x88]
mov esi, eax
call fcn.00405599
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x208]
push 5
push eax
lea ecx, [ebp - 0x18]
call fcn.00417bd2
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.004187cd
mov bl, al
lea eax, [ebp - 0x208]
push eax
mov byte [ebp - 4], 0x10
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, edi
jge 0x42ce1f
push eax
call fcn.00451dc4
test bl, bl
je 0x42ce61
lea ecx, [ebp - 0x88]
call fcn.00405599
push eax
lea eax, [ebp - 0x60]
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jne 0x42ce61
push dword [ebp + 8]
lea eax, [ebp - 0x88]
push edi
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x44], esp
push 1
push eax
call fcn.00405b24
mov ecx, dword [ebp - 0x48]
call fcn.0042d0f1
lea ecx, [ebp - 0x88]
call fcn.00405599
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0xd
call fcn.004060f2
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0xa
call fcn.004060f2
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 7
call fcn.004060f2
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.004060f2
mov eax, dword [ebp + 8]
push 0x800
push eax
mov dword [ebp - 4], 3
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, 0x80042000
je 0x42cef7
cmp esi, 0x80042001
je 0x42cef7
cmp esi, 0x80004004
je 0x42cef7
dec dword [ebp - 0x2c]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
jmp 0x42c823
lea ecx, [ebp - 0x98]
call fcn.00457b55
lea eax, [ebp - 0x98]
push 0x46e9c8
push eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x98], 0x469bcc
call fcn.00457c2c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
shl edx, 0xb
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, 0x80042000
je 0x42cf85
cmp esi, 0x80042001
je 0x42cf85
cmp esi, 0x80004004
je 0x42cf85
cmp byte [ebp - 0x24], 0
je 0x42cf5c
push dword [ebp - 0x20]
call fcn.00451b84
pop ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00421ef8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00417cf9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042f3e8
jmp 0x42c7ff
lea ecx, [ebp - 0xa8]
call fcn.00457b55
lea eax, [ebp - 0xa8]
push 0x46e9c8
push eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa8], 0x469bcc
call fcn.00457c2c