Function at 0x41eb60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push ebx
mov ebx, ecx
mov ecx, dword [0x4971e8]
push esi
mov al, byte [ebx + 0x2c]
push edi
mov edi, dword [ebx + 0x148]
push ecx
push 1
push str.CheckEraseStatus
push str.Scan
mov byte [esp + 0x38], al
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp + 8]
push eax
push 0xff
push edx
mov ecx, ebx
call fcn.00430e40
mov al, byte [ebx + 0x12f]
test al, al
je 0x41ebc1
push 0
push 0
mov ecx, ebx
call fcn.00418d70
push 2
push 0xff
push 1
push 1
mov ecx, ebx
call fcn.0041f1d0
push 0
push 2
push 1
push 1
push 0
push 0
mov ecx, ebx
call fcn.004214e0
mov eax, dword [ebx + 8]
push 0xff
push 0
push 0
mov cl, byte [eax + 0x85]
mov dl, byte [eax + 0x84]
push ecx
push edx
mov ecx, ebx
call fcn.0041f920
mov esi, dword [esp + 0x28]
mov al, byte [esp + 0x28]
and esi, 0xff
mov byte [esp + 0x1c], 0
imul esi, edi
test al, al
mov dword [esp + 0x2c], esi
jbe 0x41ee35
xor edx, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edx
jmp 0x41ec39
mov esi, dword [esp + 0x2c]
mov al, byte [edx + 0x46d6d4]
mov cl, byte [ebx + 0xe6]
test cl, al
je 0x41ee10
mov al, byte [ebx + 0x121]
mov ecx, dword [esp + 0x20]
test al, al
mov dword [esp + 0x34], ecx
mov byte [esp + 0x10], 0
jbe 0x41ee10
jmp 0x41ec6e
mov esi, dword [esp + 0x2c]
and eax, 0xff
mov ecx, dword [esp + 0x10]
imul eax, edx
and ecx, 0xff
mov edi, dword [ebp + 8]
add eax, ecx
xor ecx, ecx
mov cx, word [ebx + 0x124]
imul eax, ecx
add eax, edi
xor edi, edi
mov dword [esp + 0x30], eax
mov ax, word [ebx + 0x122]
cmp ax, di
mov dword [esp + 0x18], edi
jbe 0x41edba
movzx dx, byte [esp + 0x10]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
fild qword [esp + 0x48]
mov word [esp + 0x26], dx
fstp qword [esp + 0x50]
jmp 0x41ecce
mov edi, dword [esp + 0x18]
mov ecx, edi
and eax, 0xffff
and ecx, 0xffff
sub eax, ecx
cmp eax, 0x100
mov dword [esp + 0x14], eax
jl 0x41ecf0
mov dword [esp + 0x14], 0x100
mov si, word [esp + 0x26]
mov eax, dword [esp + 0x34]
imul si, word [ebx + 0x124]
add esi, edi
mov edi, dword [esp + 0x14]
and edi, 0xffff
mov dword [esp + 0x44], 0
add eax, edi
sub esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
fild qword [esp + 0x48]
lea eax, [ebx + 0xc0]
fmul qword [0x46ecb8]
fdiv qword [esp + 0x58]
fstp qword [esp]
push str.Scan_Bad_Block:__.1f__...
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 4]
mov eax, dword [0x49772c]
add esp, 0x10
push 0
push edx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
push edx
push esi
push eax
mov ecx, ebx
call fcn.00422b50
cmp word [esp + 0x14], 0
jbe 0x41ed98
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x58]
sub edx, esi
mov al, byte [esi]
mov cl, byte [edx + esi]
cmp al, cl
ja 0x41ed92
mov al, cl
mov byte [esi], al
inc esi
dec edi
jne 0x41ed87
mov ecx, dword [esp + 0x18]
mov ax, word [ebx + 0x122]
add ecx, 0x100
cmp cx, ax
mov dword [esp + 0x18], ecx
jb 0x41ecca
mov edx, dword [esp + 0x38]
mov si, word [ebx + 0x122]
mov cx, word [ebx + 0x124]
cmp si, cx
jae 0x41edf4
mov edi, dword [esp + 0x30]
and esi, 0xffff
and ecx, 0xffff
add edi, esi
sub ecx, esi
mov eax, 0xf0f0f0f0
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov cl, byte [esp + 0x10]
mov al, byte [ebx + 0x121]
inc cl
cmp cl, al
mov byte [esp + 0x10], cl
jb 0x41ec6a
mov edi, dword [esp + 0x3c]
mov al, byte [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov cl, byte [esp + 0x28]
inc al
inc edx
add esi, edi
cmp al, cl
mov byte [esp + 0x1c], al
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], esi
jb 0x41ec35
mov ecx, ebx
call fcn.0041c0d0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc