Function at 0x10022930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a0a9d
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 8]
mov dword [ebx + 0x210], 0
test edi, edi
je 0x100229ac
test eax, eax
jne 0x10022971
mov word [edi], ax
jmp 0x100229ac
mov esi, eax
mov edx, 0x104
mov ecx, edi
sub esi, edi
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100229a7
movzx eax, word [esi + ecx]
test ax, ax
je 0x100229a0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10022980
jmp 0x100229a4
test edx, edx
jne 0x100229a7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
push edi
call sym.dopuslib32.dll_FindFileExtensionW
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10022f8f
mov edi, str..dcf
mov ecx, eax
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
nop
test esi, esi
js 0x100229db
mov eax, esi
dec esi
test eax, eax
jle 0x10022a24
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp - 0x14], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp - 0x14]
cmp ax, cx
jne 0x10022a0f
test ax, ax
je 0x10022a24
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x100229d0
test cx, cx
jne 0x10022a19
cmp esi, 0xffffff9d
je 0x10022a24
movzx eax, ax
sub eax, ecx
jne 0x10022b8b
or dword [ebx + 0x210], 1
lea eax, [ebx + 8]
push eax
push 0x50
lea eax, [ebp - 0x100]
push eax
push 0x100ab578
push str.Func1
push str.DOpus.ButtonInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10022acd
mov esi, 0xd
xor edi, edi
test esi, esi
js 0x10022a63
mov eax, esi
dec esi
test eax, eax
jle 0x10022ab1
movzx eax, word [ebp + edi - 0x100]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi + 0x100b1550]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022a9c
test ax, ax
je 0x10022ab1
add edi, 2
jmp 0x10022a58
test cx, cx
jne 0x10022aa6
cmp esi, 0xffffff9d
je 0x10022ab1
movzx eax, ax
sub eax, ecx
jne 0x10022f7a
or dword [ebx + 0x210], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x60]
call fcn.10040aa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], vtable.TiXmlHelper.0
mov dword [ebp - 4], 1
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
call fcn.10040b90
test al, al
je 0x10022b67
push str.button
lea ecx, [ebp - 0x60]
call fcn.10040050
test eax, eax
je 0x10022b67
push str.function
mov ecx, eax
call fcn.10040050
test eax, eax
je 0x10022b67
push str.instruction
mov ecx, eax
call fcn.10040050
test eax, eax
je 0x10022b67
mov esi, dword [eax + 0x18]
test esi, esi
je 0x10022b67
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
test eax, eax
je 0x10022b67
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
test eax, eax
je 0x10022b67
mov eax, dword [eax + 0x20]
add eax, 8
push str.Prefs_LAYOUT
push eax
call sym.dopuslib32.dll_strstriA
add esp, 8
test eax, eax
je 0x10022b67
or dword [ebx + 0x210], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10006280
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..dop
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
jmp 0x10022ba0
test esi, esi
js 0x10022bab
mov eax, esi
dec esi
test eax, eax
jle 0x10022bf0
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022bdf
test ax, ax
je 0x10022bf0
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022ba0
test cx, cx
jne 0x10022be9
cmp esi, 0xffffff9d
je 0x10022bf0
movzx eax, ax
sub eax, ecx
jne 0x10022c0c
or dword [ebx + 0x210], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..dft
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
lea esp, [esp]
test esi, esi
js 0x10022c2b
mov eax, esi
dec esi
test eax, eax
jle 0x10022c70
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022c5f
test ax, ax
je 0x10022c70
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022c20
test cx, cx
jne 0x10022c69
cmp esi, 0xffffff9d
je 0x10022c70
movzx eax, ax
sub eax, ecx
jne 0x10022c8c
or dword [ebx + 0x210], 0x40
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..dps
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
lea esp, [esp]
test esi, esi
js 0x10022cab
mov eax, esi
dec esi
test eax, eax
jle 0x10022cf0
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022cdf
test ax, ax
je 0x10022cf0
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022ca0
test cx, cx
jne 0x10022ce9
cmp esi, 0xffffff9d
je 0x10022cf0
movzx eax, ax
sub eax, ecx
jne 0x10022d0c
or dword [ebx + 0x210], 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..dlt
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
lea esp, [esp]
test esi, esi
js 0x10022d2b
mov eax, esi
dec esi
test eax, eax
jle 0x10022d70
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022d5f
test ax, ax
je 0x10022d70
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022d20
test cx, cx
jne 0x10022d69
cmp esi, 0xffffff9d
je 0x10022d70
movzx eax, ax
sub eax, ecx
jne 0x10022d8f
or dword [ebx + 0x210], 0x80
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..flt
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
nop
test esi, esi
js 0x10022dab
mov eax, esi
dec esi
test eax, eax
jle 0x10022df0
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022ddf
test ax, ax
je 0x10022df0
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022da0
test cx, cx
jne 0x10022de9
cmp esi, 0xffffff9d
je 0x10022df0
movzx eax, ax
sub eax, ecx
jne 0x10022e0c
or dword [ebx + 0x210], 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..opuscert
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
lea esp, [esp]
test esi, esi
js 0x10022e2b
mov eax, esi
dec esi
test eax, eax
jle 0x10022e70
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022e5f
test ax, ax
je 0x10022e70
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022e20
test cx, cx
jne 0x10022e69
cmp esi, 0xffffff9d
je 0x10022e70
movzx eax, ax
sub eax, ecx
jne 0x10022e8c
or dword [ebx + 0x210], 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..osp
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp - 0x10], ecx
lea esp, [esp]
test esi, esi
js 0x10022eab
mov eax, esi
dec esi
test eax, eax
jle 0x10022ef0
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022edf
test ax, ax
je 0x10022ef0
mov ecx, dword [ebp - 0x10]
add edi, 2
jmp 0x10022ea0
test cx, cx
jne 0x10022ee9
cmp esi, 0xffffff9d
je 0x10022ef0
movzx eax, ax
sub eax, ecx
jne 0x10022f0f
or dword [ebx + 0x210], 0x100
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edi, str..opusscriptinstall
or esi, 0xffffffff
sub ecx, edi
mov dword [ebp + 8], ecx
nop
test esi, esi
js 0x10022f2b
mov eax, esi
dec esi
test eax, eax
jle 0x10022f70
movzx eax, word [ecx + edi]
push eax
call fcn.10086fcc
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi]
push eax
call fcn.10086fcc
movzx ecx, ax
add esp, 8
mov eax, dword [ebp + 0xc]
cmp ax, cx
jne 0x10022f5f
test ax, ax
je 0x10022f70
mov ecx, dword [ebp + 8]
add edi, 2
jmp 0x10022f20
test cx, cx
jne 0x10022f69
cmp esi, 0xffffff9d
je 0x10022f70
movzx eax, ax
sub eax, ecx
jne 0x10022f8f
or dword [ebx + 0x210], 0x200
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc