Function at 0x100044eb
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0x41c
push 0x40
mov edi, edx
mov ebx, ecx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x100048ce
push 3
pop eax
lea ecx, [esi + 0xd0]
xor edx, edx
dec eax
lea ecx, [ecx - 4]
mov dword [ecx], edx
test ax, ax
jne 0x10004523
mov eax, dword [ebp + 8]
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], edx
mov dword [esi + 0x40], eax
movzx eax, di
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
movsx eax, di
movsx ecx, bx
imul ecx, eax
lea eax, [edi + 3]
and eax, 0xfffffffc
mov word [esi + 0x46], di
movzx eax, ax
mov dword [esp + 0x14], eax
mov word [esi + 0x50], ax
mov dword [esi + 0x54], ecx
lea ecx, [ebx + 3]
movsx edi, ax
and ecx, 0xfffffffc
movsx eax, cx
imul eax, edi
mov word [esi + 0x4e], cx
mov ecx, 0x960
push 3
mov word [esi + 0x44], bx
pop ebx
sar eax, 4
add eax, 0x4b0
cdq
idiv ecx
movzx ecx, ax
xor eax, eax
inc eax
cmp cx, ax
jl 0x100045bb
mov eax, ecx
cmp cx, bx
jle 0x100045bb
mov eax, ebx
movsx ecx, ax
lea eax, [edi - 1]
add eax, ecx
cdq
idiv ecx
add eax, ebx
lea ebx, [esi + 0xd0]
and eax, 0xfffffffc
movzx eax, ax
movsx ecx, ax
mov dword [esp + 0x18], eax
lea eax, [edi - 1]
add eax, ecx
cdq
idiv ecx
mov edx, dword [ebp + 0x18]
mov ecx, esi
mov word [ebx], ax
call fcn.10004de7
movzx ecx, word [ebx]
mov edx, dword [ebp + 0x14]
mov eax, ecx
shl eax, 4
mov word [esi + 0x41a], ax
test edx, edx
je 0x10004616
mov ecx, esi
call fcn.10004e08
movzx eax, word [esi + 0xd0]
jmp 0x10004621
xor eax, eax
mov word [esi + 0xd4], ax
mov eax, ecx
xor ecx, ecx
xor ebx, ebx
push 0x20
pop edx
cmp cx, ax
jge 0x10004731
push 0x24
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
movsx ecx, bx
mov edi, eax
mov dword [esi + ecx*4 + 0xc4], edi
test edi, edi
je 0x100048c7
test bx, bx
je 0x1000465d
mov ecx, dword [esi + ecx*4 + 0xc0]
mov dword [ecx], edi
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], eax
mov word [edi + 4], bx
movzx eax, dx
cmp dx, cx
jl 0x1000467f
movzx eax, cx
sub ecx, eax
mov word [edi + 6], ax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
cmp dx, cx
jge 0x10004697
movzx ecx, dx
jmp 0x1000469a
movzx ecx, cx
sub dword [esp + 0x10], ecx
mov word [edi + 8], cx
movsx ecx, ax
movsx eax, word [esi + 0x4e]
imul ecx, eax
sar ecx, 4
mov dword [edi + 0xc], ecx
test bx, bx
je 0x100046bb
mov byte [edi + 0xa], 0x11
mov eax, dword [esi + 0xc4]
push 0x20
pop ecx
mov eax, dword [eax + 0xc]
mul ecx
test edx, edx
ja 0x100048c7
jb 0x100046dc
cmp eax, 0xffffffff
ja 0x100048c7
push eax
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [edi + 0x10], eax
test eax, eax
je 0x100048c7
push 0x800
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [edi + 0x14], eax
test eax, eax
je 0x100048c7
push 0x800
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x100048c7
inc ebx
cmp bx, word [esi + 0xd0]
jl 0x10004631
push 0x20
pop edx
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x100048c7
mov ecx, dword [eax + 0xc]
mov eax, ecx
mul edx
mov dword [esp + 0x18], eax
test edx, edx
ja 0x100048c7
jb 0x1000475d
cmp eax, 0xffffffff
ja 0x100048c7
push 2
mov eax, ecx
pop edx
mul edx
mov edi, eax
test edx, edx
ja 0x100048c7
jb 0x10004779
cmp edi, 0xffffffff
ja 0x100048c7
mov eax, ecx
push 8
pop ecx
mul ecx
mov ebx, eax
test edx, edx
ja 0x100048c7
jb 0x10004795
cmp ebx, 0xffffffff
ja 0x100048c7
push edi
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esi + 0x6c], eax
test eax, eax
je 0x100048c7
push edi
push 0x40
pop edi
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esi + 0x70], eax
test eax, eax
je 0x100048c7
push 0x1cc00
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esi + 0x7c], eax
test eax, eax
je 0x100048c7
push dword [esp + 0x18]
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esi + 0x80], eax
test eax, eax
je 0x100048c7
push 0x1cc00
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esi + 0x94], eax
test eax, eax
je 0x100048c7
push ebx
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov dword [esi + 0x98], eax
test eax, eax
je 0x100048c7
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.1000663d
test eax, eax
je 0x100048c7
mov ax, word [ebp + 0x1c]
mov edi, 0x1001308c
mov dword [esi + 0x8c], 0xc8
mov dword [esi + 0xa4], 0x7d0
or dword [esi + 0x5c], 0xffffffff
mov word [esi + 0x6a], ax
lea eax, [esi + 0xbc]
push 8
mov dword [esp + 0x1c], eax
mov ebx, eax
pop esi
push str.system.ini
lea edi, [edi - 0x10]
dec esi
push dword [edi - 4]
lea ebx, [ebx - 2]
push dword [edi]
push 0x10013890
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
mov word [ebx], ax
test si, si
jne 0x10004865
mov esi, str.system.ini
mov edi, 0x10013890
push esi
push 1
push 0x100012b0
push edi
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x18]
push esi
push 0xe
push 0x100012c0
push edi
mov word [ecx], ax
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
mov esi, dword [esp + 0x1c]
mov word [esi + 0xbe], ax
mov eax, esi
jmp 0x100048ce
mov ecx, esi
call fcn.100048d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18