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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a8636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48c
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 + 0x24], al
mov dword [esp + 0x30], ebx
mov byte [esp + 0x18], cl
call edi
add esp, 8
test eax, eax
je 0x422b20
mov eax, dword [esi + 0x120]
push str.Spansion
push eax
call edi
add esp, 8
test eax, eax
je 0x422b20
mov cx, word [esi + 0x18a]
mov word [esp + 0x34], cx
jmp 0x422b28
mov dword [esp + 0x34], 0x20
mov edx, dword [esi + 0x124]
push str.SM90_256MB
push edx
call edi
add esp, 8
test eax, eax
je 0x422b57
mov eax, dword [esi + 0x120]
push str.Spansion
push eax
call edi
add esp, 8
mov byte [esp + 0x3c], 0x40
test eax, eax
jne 0x422b5c
mov byte [esp + 0x3c], 8
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], 0
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x1c]
test al, al
jbe 0x422ba8
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, ebx
and eax, 0xff
and ecx, 0xffff
lea edi, [esp + 0x78]
imul eax, ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
mov dword [edi], edx
add edx, eax
add edi, 4
dec ecx
jne 0x422b9e
mov edi, ebx
xor eax, eax
mov al, byte [esi + 0x10270]
and edi, 0xffff
imul eax, edi
mov ecx, dword [esp + 0x34]
push str.IDS_STS_SCAN_BAD_BLOCK
cdq
and ecx, 0xffff
mov dword [esp + 0x50], edi
idiv ecx
lea edx, [esp + 0x70]
xor ebx, ebx
push edx
mov dword [esp + 0x7c], eax
call dword [0x4e610c]
add esp, 8
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4a4], ebx
call fcn.004a57ee
lea ecx, [esp + 0x6c]
mov byte [esp + 0x4a0], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x10270]
mov byte [esp + 0x20], bl
test al, al
jbe 0x422e06
mov eax, dword [esp + 0x20]
and eax, 0xff
mov cl, byte [esi + eax*2 + 0x10272]
mov byte [esp + 0x14], cl
mov ecx, esi
mov edx, dword [esp + 0x14]
push edx
call fcn.00423090
xor eax, eax
xor edi, edi
cmp word [esp + 0x28], ax
mov dword [esp + 0x18], edi
jbe 0x422dea
jmp 0x422c50
xor eax, eax
test byte [esi + 0xb4], 0xe0
jne 0x422e4e
mov ecx, dword [esp + 0x74]
inc ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], eax
fild qword [esp + 0x64]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], ebx
fmul qword [0x4b7658]
fild qword [esp + 0x5c]
fdivp st(1)
fstp qword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
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 eax, dword [esp + 0x14]
lea edx, [esp + 0x98]
push edx
push eax
push edi
push 0xb4
mov ecx, esi
call fcn.0042b6f0
mov al, byte [esp + 0x1c]
test al, al
jbe 0x422dd7
mov eax, dword [esp + 0x10]
mov ecx, edi
and eax, 0xff
and ecx, 0xffff
imul ecx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x78]
and eax, 0xff
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov ebx, ecx
mov edx, dword [eax]
xor eax, eax
add ebx, edx
cmp word [esi + 0x18a], ax
mov dword [esp + 0x24], eax
jbe 0x422db0
mov ecx, dword [esp + 0x40]
mov edx, 1
shl edx, cl
mov dword [esp + 0x70], edx
jmp 0x422d4d
mov edx, dword [esp + 0x70]
mov edi, eax
and edi, 0xffff
test byte [esp + edi + 0x98], dl
je 0x422d96
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
and eax, 0xff
cdq
idiv ecx
mov eax, edi
imul eax, ecx
mov ecx, ebx
add ecx, edx
mov byte [eax + ecx], 0xe0
mov al, byte [esi + 0x158]
cmp al, 2
jne 0x422d96
xor edx, edx
mov dx, word [esi + 0x160]
shr edx, 1
add edx, edi
mov byte [edx + ebx], 0xe0
mov eax, dword [esp + 0x24]
inc eax
cmp ax, word [esi + 0x18a]
mov dword [esp + 0x24], eax
jb 0x422d49
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
inc ebx
add edx, 4
dec eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], eax
jne 0x422d1f
mov ebx, dword [esp + 0x48]
add edi, dword [esp + 0x34]
cmp di, word [esp + 0x28]
mov dword [esp + 0x18], edi
jb 0x422c4e
mov al, byte [esp + 0x20]
mov cl, byte [esi + 0x10270]
inc al
cmp al, cl
mov byte [esp + 0x20], al
jb 0x422c19
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
and eax, 0xff
mov byte [esp + 0x28], 0xc5
imul edi, eax
mov edx, dword [ecx + 0x5c]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x2c], edi
cmp edx, eax
jne 0x422e3b
cmp dword [esi + 0x103cc], eax
jne 0x422e3b
cmp dword [ecx + 0xdc], eax
je 0x422e40
mov byte [esp + 0x28], 0xc4
cmp edi, eax
mov dword [esp + 0x14], eax
jbe 0x423001
jmp 0x422e69
lea eax, [esp + 0x4c]
push 0x4d8340
push eax
mov dword [esp + 0x54], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x48]
test byte [esi + 0xb4], 0xe0
jne 0x423074
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x64], edi
and ebx, 0xff
add eax, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
fild qword [esp + 0x5c]
mov eax, dword [esp + 0x30]
fmul qword [0x4b7650]
fild qword [esp + 0x64]
fdivp st(1)
fadd qword [0x4b7658]
fstp qword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
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 + 0x98]
mov eax, ebx
push ecx
mov ecx, dword [esp + 0x3c]
cdq
idiv ecx
xor edx, edx
push eax
mov eax, dword [esp + 0x1c]
div ecx
mov edx, dword [esp + 0x30]
mov ecx, esi
push eax
push edx
call fcn.0042b730
test eax, eax
mov al, byte [esp + 0x1c]
jne 0x422f70
test al, al
jbe 0x422fef
lea eax, [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [ecx]
mov ecx, ebx
mov edx, ecx
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 + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x422f33
mov edi, dword [esp + 0x2c]
jmp 0x422fef
test al, al
jbe 0x422fef
lea eax, [esp + 0x98]
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x10]
mov cl, byte [esp + 0x3c]
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
add eax, edx
test cl, cl
jbe 0x422fcf
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
sub edi, eax
mov cl, byte [eax]
mov dl, byte [edi + eax]
cmp cl, dl
ja 0x422fbd
mov cl, dl
mov byte [eax], cl
mov ecx, dword [esp + 0x18]
inc eax
dec ecx
mov dword [esp + 0x18], ecx
jne 0x422fb2
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add edx, 4
add ecx, ebx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x422f94
mov eax, dword [esp + 0x14]
add eax, ebx
cmp eax, edi
mov dword [esp + 0x14], eax
jb 0x422e65
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]
cmp byte [esi + 0x138], 2
jne 0x423044
mov ecx, esi
call fcn.0041e600
lea ecx, [esp + 0x30]
mov dword [esp + 0x4a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x498]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x54]
push 0x4d8340
push eax
mov dword [esp + 0x5c], 0xa0000
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop