Function at 0x422600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a8616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push str.SM90_256MB
mov edx, dword [esi + 0x124]
mov al, byte [esi + 0x34]
mov bx, word [esi + 0x160]
mov cl, byte [esi + 0x157]
push edx
mov byte [esp + 0x28], al
mov dword [esp + 0x34], ebx
mov byte [esp + 0x3c], cl
call edi
add esp, 8
test eax, eax
je 0x422680
mov eax, dword [esi + 0x120]
push str.Spansion
push eax
call edi
add esp, 8
test eax, eax
je 0x422680
mov cx, word [esi + 0x18a]
mov word [esp + 0x14], cx
jmp 0x422688
mov dword [esp + 0x14], 0x20
mov edx, dword [esi + 0x124]
push str.SM90_256MB
push edx
call edi
add esp, 8
test eax, eax
je 0x4226b7
mov eax, dword [esi + 0x120]
push str.Spansion
push eax
call edi
add esp, 8
mov byte [esp + 0x38], 0x40
test eax, eax
jne 0x4226bc
mov byte [esp + 0x38], 8
mov ecx, ebx
xor eax, eax
mov al, byte [esi + 0x10270]
and ecx, 0xffff
imul eax, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
cdq
and ecx, 0xffff
push str.IDS_STS_SCAN_BAD_BLOCK
idiv ecx
lea edx, [esp + 0x58]
xor ebx, ebx
push edx
mov dword [esp + 0x20], eax
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x284], ebx
call fcn.004a57ee
lea ecx, [esp + 0x54]
mov byte [esp + 0x280], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x10270]
mov byte [esp + 0x10], bl
test al, al
jbe 0x422805
mov eax, dword [esp + 0x10]
and eax, 0xff
mov cl, byte [esi + eax*2 + 0x10272]
mov byte [esp + 0x1c], cl
mov ecx, esi
mov edx, dword [esp + 0x1c]
push edx
call fcn.00423090
xor eax, eax
xor edi, edi
cmp word [esp + 0x2c], ax
jbe 0x4227ed
jmp 0x422760
xor eax, eax
test byte [esi + 0xb4], 0xe0
jne 0x422873
mov ecx, dword [esp + 0x18]
inc ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
fild qword [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x30]
fmul qword [0x4b7658]
fild qword [esp + 0x44]
fdivp st(1)
fstp qword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea edx, [esi + 0xbc]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 4]
mov ecx, dword [0x4e60fc]
add esp, 0x10
push 0
push eax
push 0x40c
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
push edi
push 0xb0
call fcn.0042b6b0
add edi, dword [esp + 0x14]
cmp di, word [esp + 0x2c]
jb 0x42275e
mov al, byte [esp + 0x10]
mov cl, byte [esi + 0x10270]
inc al
cmp al, cl
mov byte [esp + 0x10], al
jb 0x42272d
mov ebx, dword [esp + 0x34]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], 0
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x20]
test al, al
jbe 0x42284d
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov eax, ebx
lea edi, [esp + 0x58]
and eax, 0xff
imul eax, dword [esp + 0x24]
and ecx, 0xff
mov dword [edi], edx
add edx, eax
add edi, 4
dec ecx
jne 0x422843
mov eax, ebx
xor ecx, ecx
and eax, 0xff
xor edi, edi
mov dword [esp + 0x3c], eax
imul eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jbe 0x422a1e
jmp 0x422892
lea eax, [esp + 0x18]
push 0x4d8340
push eax
mov dword [esp + 0x20], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
test byte [esi + 0xb4], 0xe0
jne 0x422a81
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
and ebx, 0xff
mov eax, dword [esp + 0x30]
add ecx, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], ecx
fild qword [esp + 0x4c]
fmul qword [0x4b7650]
fild qword [esp + 0x44]
fdivp st(1)
fadd qword [0x4b7658]
fstp qword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esi + 0xbc]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 4]
mov eax, dword [0x4e60fc]
add esp, 0x10
push 0
push edx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x78]
mov eax, ebx
push ecx
mov ecx, dword [esp + 0x40]
cdq
idiv ecx
xor edx, edx
push eax
mov eax, edi
div ecx
mov ecx, esi
push eax
push 0xc4
call fcn.0042b730
test eax, eax
mov al, byte [esp + 0x20]
jne 0x422994
test al, al
jbe 0x422a0c
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x58]
and eax, 0xff
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
mov edi, dword [eax]
mov eax, dword [esp + 0x14]
add edi, eax
mov eax, 0xf1f1f1f1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x422957
mov edi, dword [esp + 0x14]
jmp 0x422a0c
test al, al
jbe 0x422a0c
lea eax, [esp + 0x78]
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
and eax, 0xff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x10]
mov cl, byte [esp + 0x38]
mov eax, dword [edx]
add eax, edi
test cl, cl
jbe 0x4229ec
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
sub edi, eax
mov cl, byte [eax]
mov dl, byte [edi + eax]
cmp cl, dl
ja 0x4229da
mov cl, dl
mov byte [eax], cl
mov ecx, dword [esp + 0x24]
inc eax
dec ecx
mov dword [esp + 0x24], ecx
jne 0x4229cf
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
add edx, 4
add ecx, ebx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
jne 0x4229b5
mov eax, dword [esp + 0x18]
add edi, ebx
cmp edi, eax
mov dword [esp + 0x14], edi
jb 0x42288a
mov ecx, dword [esp + 0x30]
push 0x40590000
push 0
lea edx, [esi + 0xbc]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 4]
mov ecx, dword [0x4e60fc]
add esp, 0x10
push 0
push eax
push 0x40c
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x30]
mov dword [esp + 0x280], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x278]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x3c]
push 0x4d8340
push eax
mov dword [esp + 0x44], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop