Function at 0x10004595
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 0x1000495d
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 0x100045cd
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 0x10004665
mov eax, ecx
cmp cx, bx
jle 0x10004665
mov eax, ebx
movsx ecx, ax
lea eax, [edi - 1]
add eax, ecx
cdq
idiv ecx
add eax, ebx
and eax, 0xfffffffc
movzx eax, ax
movsx ecx, ax
mov dword [esp + 0x18], eax
lea eax, [edi - 1]
add eax, ecx
lea edi, [esi + 0xd0]
cdq
idiv ecx
mov edx, dword [ebp + 0x18]
mov ecx, esi
mov word [edi], ax
call fcn.10004ea0
mov ax, word [edi]
mov edx, dword [ebp + 0x14]
shl ax, 4
mov word [esi + 0x41a], ax
call fcn.10004ec7
xor eax, eax
xor ebx, ebx
push 0x20
pop edx
cmp ax, word [edi]
jge 0x100047c0
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 0x10004956
test bx, bx
je 0x100046ec
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 0x1000470e
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 0x10004726
movzx ecx, dx
jmp 0x10004729
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 0x1000474a
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 0x10004956
jb 0x1000476b
cmp eax, 0xffffffff
ja 0x10004956
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 0x10004956
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 0x10004956
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 0x10004956
inc ebx
cmp bx, word [esi + 0xd0]
jl 0x100046c0
push 0x20
pop edx
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x10004956
mov ecx, dword [eax + 0xc]
mov eax, ecx
mul edx
mov dword [esp + 0x18], eax
test edx, edx
ja 0x10004956
jb 0x100047ec
cmp eax, 0xffffffff
ja 0x10004956
push 2
mov eax, ecx
pop edx
mul edx
mov edi, eax
test edx, edx
ja 0x10004956
jb 0x10004808
cmp edi, 0xffffffff
ja 0x10004956
mov eax, ecx
push 8
pop ecx
mul ecx
mov ebx, eax
test edx, edx
ja 0x10004956
jb 0x10004824
cmp ebx, 0xffffffff
ja 0x10004956
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 0x10004956
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 0x10004956
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 0x10004956
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 0x10004956
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 0x10004956
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 0x10004956
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.10006759
test eax, eax
je 0x10004956
mov ax, word [ebp + 0x1c]
mov edi, 0x1001408c
or dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x8c], 0xc8
mov dword [esi + 0xa4], 0x7d0
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 0x10014890
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
mov word [ebx], ax
test si, si
jne 0x100048f4
mov esi, str.system.ini
mov edi, 0x10014890
push esi
push 1
push 0x100012c0
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 0x100012d0
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 0x1000495d
mov ecx, esi
call fcn.1000496c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18