Function at 0x46ed90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc68
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 0x46eddb
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, 2
mov byte [ebp - 0x2c], al
jb 0x46ede9
mov byte [ebp - 0x2c], 2
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 - 0x24], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0x18], al
mov eax, 0xff
and ecx, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
cmp ecx, eax
jl 0x46ee31
mov cl, al
cmp cl, 2
mov byte [ebp - 0x18], cl
ja 0x46ee3d
mov byte [ebp - 0x18], 2
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
imul byte [ebp - 0x24]
movzx dx, byte [ebp - 0x2c]
movzx di, al
mov byte [ebp - 0x38], al
mov eax, 0x400
imul edi, edx
cdq
and ecx, 0xff
mov dword [ebp - 0x3c], 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 - 0x14], eax
call fcn.00470770
mov edx, dword [ebp - 0x38]
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
mov dword [ebp - 0x28], eax
xor cl, cl
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x20], cl
cmp cl, al
jae 0x46ef01
xor al, al
mov byte [ebp - 0x30], al
cmp al, byte [ebp - 0x18]
jae 0x46eefd
xor dx, dx
mov edi, dword [ebp - 0x18]
mov dl, al
and edi, 0xff
inc edx
imul edx, esi
movzx cx, cl
shl ecx, 0xa
add edx, ecx
mov ecx, dword [ebp - 0x20]
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 edi, dword [ebp - 0x3c]
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0x30], al
jmp 0x46eeb2
inc cl
jmp 0x46eea3
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 - 0x20], 0
push ecx
mov ecx, ebx
mov dword [ebp - 0x14], esi
call fcn.0046e2a0
and eax, 0xff
mov edx, dword [ebp - 0x28]
add eax, 2
sub esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
fild dword [ebp - 0x30]
movzx ax, byte [ebp - 0x38]
fdivr qword [0x4b75e8]
fst qword [ebp - 0x1c]
fadd st(0), st(0)
fstp qword [esp]
push 0
push 0
push esi
push edx
push 0xff
push eax
push ecx
mov ecx, ebx
call fcn.0046f410
lea edx, [ebp - 0x864]
mov ecx, ebx
push edx
push 8
push edi
push esi
call fcn.0046f1f0
cmp dword [ebp - 0x55c], 0x233
jae 0x46f0dc
xor ecx, ecx
mov eax, 0x66666667
mov cx, word [ebx + 0x148]
lea edx, [ecx*4]
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp - 0x456]
and eax, 0xffff
cmp eax, edx
jle 0x46efe9
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov eax, dword [ebp - 0x85e]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
and eax, 0xffff
cmp eax, edx
jg 0x46f0dc
xor al, al
cmp al, 8
mov byte [ebp - 0x24], al
jae 0x46f053
mov edx, 1
mov cl, al
shl edx, cl
test dword [ebx + 0x5858], edx
je 0x46f04f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
and eax, 0xff
mov edx, dword [ebp - 0x1c]
add eax, 2
push ecx
mov dword [ebp - 0x30], eax
mov al, byte [ebp - 0x20]
fild dword [ebp - 0x30]
inc al
push edx
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x20], al
fmul qword [ebp - 0x1c]
fstp qword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push esi
movzx cx, byte [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x2c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0046f410
mov al, byte [ebp - 0x24]
inc al
jmp 0x46efeb
mov byte [ebp - 0x18], 8
cmp byte [ebp - 0x18], 8
ja 0x46f0f2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x864]
push eax
push ecx
push edi
push esi
mov ecx, ebx
call fcn.0046f1f0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc74]
push edx
push eax
push edi
push esi
mov ecx, ebx
call fcn.0046f270
mov ecx, dword [ebp - 0x55c]
mov eax, dword [ebp - 0x96c]
test ecx, ecx
jne 0x46f0c0
test eax, eax
jne 0x46f0c0
mov al, byte [ebp - 0x18]
mov ecx, 0x104
lea esi, [ebp - 0xc74]
lea edi, [ebp - 0x450]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x3c]
inc al
mov byte [ebp - 0x18], al
jmp 0x46f057
lea edx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl ecx, 1
lea eax, [eax + edx*2]
cmp ecx, eax
mov ecx, 0x104
jae 0x46f0e1
lea esi, [ebp - 0xc74]
jmp 0x46f0e7
mov ecx, 0x104
lea esi, [ebp - 0x864]
lea edi, [ebp - 0x450]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov al, byte [ebp - 0x450]
mov cx, word [ebp - 0x44e]
cmp al, 4
mov byte [ebx + 0xf2], al
mov word [ebx + 0xf4], cx
jne 0x46f187
test cx, cx
jne 0x46f187
cmp word [ebp - 0x44a], cx
jne 0x46f171
lea edx, [ebx + 0x2ada]
mov ecx, 0xc0
or eax, 0xffffffff
mov edi, edx
rep stosd dword es:[edi], eax
xor eax, eax
mov al, byte [ebx + 0x152]
sub eax, 4
je 0x46f163
dec eax
je 0x46f155
lea edx, [ebp - 0x40]
push 0x4d8340
push edx
mov dword [ebp - 0x40], 0
call sub.MSVCRT.dll__CxxThrowException
mov ecx, 0x40
mov esi, 0x4c7e00
mov edi, edx
jmp 0x46f182
mov ecx, 0x20
mov esi, 0x4c7e00
mov edi, edx
jmp 0x46f182
lea edi, [ebx + 0x2ada]
mov ecx, 0xc0
lea esi, [ebp - 0x448]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x46f197
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test esi, esi
je 0x46f1a4
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