Function at 0x100051c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029408
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x874], esi
lea edx, [esi + 0x70]
mov dword [ebp - 0x878], 0
cmp dword [edx + 0x14], 8
jb 0x1000520a
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005210
sub ecx, edi
lea edi, [esi + 0xd0]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10005a50
push 0xb
push str.MConfig.ini
mov ecx, edi
call fcn.10002810
push str.btfimggf
push 0x1002b5d4
push str.MainAppInfo
lea eax, [ebp - 0x858]
push str.ButterflyImage
push eax
call fcn.1000b380
add esp, 0x14
mov dword [ebp - 0x878], 1
add esi, 0xe8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x858]
cmp esi, eax
je 0x1000529c
cmp dword [ebp - 0x844], 8
mov ecx, esi
push dword [ebp - 0x848]
cmovae eax, dword [ebp - 0x858]
push eax
call fcn.10005a50
push str.btfimggf
push esi
call fcn.10002490
add esp, 8
test al, al
je 0x10005315
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100141e0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x100052cc
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.btfimggf
push 0x1002b5d4
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100052f7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10005a50
push str.btfimggf
push esi
call fcn.10002490
add esp, 8
test al, al
je 0x100053df
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100141e0
mov edi, dword [ebp - 0x874]
lea ecx, [ebp - 0x840]
add esp, 0xc
lea eax, [edi + 0x58]
push eax
call fcn.100024f0
push 0xb
push str.MConfig.ini
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 1
call fcn.10002810
cmp dword [ebp - 0x82c], 8
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.btfimggf
push 0x1002b5d4
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10005a50
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 0
call fcn.100026c0
jmp 0x100053e5
mov edi, dword [ebp - 0x874]
push str.btfimggf
push esi
call fcn.10002490
add esp, 8
test al, al
je 0x10005604
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.100141e0
lea eax, [edi + 0x88]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10005423
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push str.btfimggf
push 0x1002b5d4
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005470
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.10005a50
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
mov dword [ebp - 0x878], 3
mov ecx, str.btfimggf
cmovae eax, dword [ebp - 0x828]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100054db
test dx, dx
je 0x100054d7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100054db
add eax, 4
add ecx, 4
test dx, dx
jne 0x100054b5
xor eax, eax
jmp 0x100054e0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100055b4
push str.btfimggf
push 0x1002b5d4
push str.MainAppInfo
cmp byte [edi + 5], al
je 0x1000554f
lea eax, [ebp - 0x870]
mov ecx, edi
push eax
call fcn.10003070
mov edi, eax
lea eax, [ebp - 0x828]
cmp eax, edi
je 0x10005547
mov ecx, eax
call fcn.100026c0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x818], xmm0
mov word [edi], ax
lea ecx, [ebp - 0x870]
jmp 0x100055af
lea eax, [ebp - 0x840]
push str.ButterflyImage
push eax
call fcn.1000b5d0
add esp, 0x14
lea ecx, [ebp - 0x828]
call fcn.100026c0
movups xmm0, xmmword [ebp - 0x840]
xor eax, eax
lea ecx, [ebp - 0x840]
mov word [ebp - 0x840], ax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [ebp - 0x830]
movq qword [ebp - 0x818], xmm0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
call fcn.100026c0
lea eax, [ebp - 0x828]
cmp esi, eax
je 0x100055f9
mov ecx, esi
call fcn.100026c0
movups xmm0, xmmword [ebp - 0x828]
xor eax, eax
mov word [ebp - 0x828], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x818]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
lea ecx, [ebp - 0x828]
call fcn.100026c0
mov edx, dword [ebp - 0x844]
cmp edx, 8
jb 0x10005640
mov ecx, dword [ebp - 0x858]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000565b
push edx
push ecx
call fcn.10011b41
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
call fcn.10016079
int3