Function at 0x46cf90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc60
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov al, byte [ebx + 0xec]
push edi
mov dword [ebp - 0x10], esp
cmp byte [eax + ebx + 0x105], 1
jne 0x46cfdb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 0x34]
cmp al, 4
mov byte [ebp - 0x18], al
jb 0x46cfe9
mov byte [ebp - 0x18], 4
mov ecx, dword [0x4e5bb8]
mov eax, dword [ebx + 0x16c]
push ecx
push 2
shr eax, 0xa
push str.SortFixedBlockNum
push str.Scan
mov byte [ebp - 0x38], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0x24], al
mov eax, 0xff
and ecx, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
cmp ecx, eax
jl 0x46d031
mov cl, al
cmp cl, 2
mov byte [ebp - 0x24], cl
ja 0x46d03d
mov byte [ebp - 0x24], 2
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
imul byte [ebp - 0x38]
movzx dx, byte [ebp - 0x18]
movzx di, al
mov byte [ebp - 0x20], al
mov eax, 0x400
imul edi, edx
cdq
and ecx, 0xff
mov dword [ebp - 0x2c], edi
idiv ecx
mov ecx, ebx
mov esi, eax
xor eax, eax
or esi, 1
mov dword [ebp - 0x28], eax
sub esi, 2
mov dword [ebp - 0x1c], eax
call fcn.0046e8b0
mov edx, dword [ebp - 0x20]
mov dword [ebx + 0x5858], eax
and edx, 0xff
mov dword [ebp - 4], 0
shl edx, 1
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
xor cl, cl
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x14], cl
cmp cl, byte [ebp - 0x38]
jae 0x46d102
xor al, al
mov byte [ebp - 0x30], al
cmp al, byte [ebp - 0x24]
jae 0x46d0f8
xor dx, dx
mov edi, dword [ebp - 0x24]
mov dl, al
and edi, 0xff
inc edx
imul edx, esi
movzx cx, cl
shl ecx, 0xa
add edx, ecx
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
imul ecx, edi
mov edi, dword [ebp - 0x30]
and edi, 0xff
add ecx, edi
mov edi, dword [ebp - 0x28]
inc al
mov word [edi + ecx*2], dx
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x30], al
jmp 0x46d0b0
mov edi, dword [ebp - 0x2c]
inc cl
mov byte [ebp - 0x14], cl
jmp 0x46d0a6
mov eax, edi
and eax, 0xffff
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
lea eax, [eax + eax*8]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x5858]
add esp, 4
mov esi, eax
mov byte [ebp - 0x14], 0
push ecx
mov ecx, ebx
mov dword [ebp - 0x1c], esi
call fcn.0046e2a0
and eax, 0xff
mov edx, dword [ebp - 0x28]
add eax, 2
sub esp, 8
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x18]
fild dword [ebp - 0x30]
movzx ax, byte [ebp - 0x20]
fdivr qword [0x4b75e8]
mov ecx, ebx
fst qword [ebp - 0x3c]
fadd st(0), st(0)
fstp qword [esp]
push 0
push 0
push esi
push edx
push 0xff
push eax
push edi
call fcn.0046d800
mov dl, byte [ebx + 0x838]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x85c]
push ecx
push edx
push eax
push esi
mov ecx, ebx
call fcn.0046d370
cmp dword [ebp - 0x554], 0x266
jb 0x46d1ac
mov ecx, 0x104
lea esi, [ebp - 0x85c]
jmp 0x46d2b6
xor al, al
cmp al, 8
mov byte [ebp - 0x18], al
jae 0x46d213
mov edx, 1
mov cl, al
shl edx, cl
test dword [ebx + 0x5858], edx
je 0x46d20f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
and eax, 0xff
mov edx, dword [ebp - 0x3c]
add eax, 2
push ecx
mov dword [ebp - 0x30], eax
mov al, byte [ebp - 0x14]
fild dword [ebp - 0x30]
inc al
push edx
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x14], al
fmul qword [ebp - 0x3c]
fstp qword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push esi
movzx cx, byte [ebp - 0x20]
push edx
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0046d800
mov al, byte [ebp - 0x18]
inc al
jmp 0x46d1ae
mov dl, byte [ebx + 0x838]
mov byte [ebp - 0x20], dl
mov edi, dword [ebp - 0x20]
xor eax, eax
mov al, byte [ebx + 0x838]
mov ecx, edi
add eax, 2
and ecx, 0xff
cmp ecx, eax
jge 0x46d2c1
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x85c]
push edx
push edi
push eax
push esi
mov ecx, ebx
call fcn.0046d370
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc6c]
push ecx
push edi
push edx
push esi
mov ecx, ebx
call fcn.0046d500
mov ecx, dword [ebp - 0x554]
mov eax, dword [ebp - 0x964]
test ecx, ecx
jne 0x46d296
test eax, eax
jne 0x46d296
mov al, byte [ebp - 0x20]
mov ecx, 0x104
lea esi, [ebp - 0xc6c]
lea edi, [ebp - 0x44c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
inc al
mov byte [ebp - 0x20], al
jmp 0x46d21c
lea eax, [eax + eax*2]
lea ecx, [ecx + ecx*4]
shl eax, 2
shl ecx, 1
cmp ecx, eax
mov ecx, 0x104
lea esi, [ebp - 0x85c]
jae 0x46d2b6
lea esi, [ebp - 0xc6c]
lea edi, [ebp - 0x44c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov al, byte [ebp - 0x44c]
mov cx, word [ebp - 0x44a]
cmp al, 4
mov byte [ebx + 0xf2], al
mov word [ebx + 0xf4], cx
jne 0x46d30e
test cx, cx
jne 0x46d30e
cmp word [ebp - 0x446], cx
jne 0x46d2f8
mov word [ebx + 0xf4], 0x40
jmp 0x46d30e
lea edi, [ebx + 0x2ada]
mov ecx, 0xc0
lea esi, [ebp - 0x444]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x46d31e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test esi, esi
je 0x46d32b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret