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

Disassembly:
jmp 0x5b6b90
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6626cb
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x3f6]
test eax, eax
je 0x5b7b67
push ebp
push esi
push edi
call fcn.0040803f
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CScrollView::GetScrollPosition
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x70], eax
cdq
and edx, 0xf
add eax, edx
mov edi, eax
mov eax, 0x84210843
imul ecx
add edx, ecx
lea ecx, [esp + 0x1c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
sar edi, 4
add edx, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], edx
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 0x3f2]
mov ebp, dword [esp + 0xd0]
xor esi, esi
mov edx, dword [ecx]
mov ecx, ebp
mov dword [esp + 0xc8], esi
mov eax, dword [edx + 8]
mov edx, dword [ebp]
mov dword [esp + 0x20], eax
call dword [edx + 0x24]
mov eax, 0x66edfc
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], eax
push str.Arial
push 2
push esi
push esi
push 5
push esi
push esi
push esi
push esi
push 0x64
push esi
push esi
push 6
push 0xe
mov byte [esp + 0x100], 2
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [ebp]
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebp
call dword [eax + 0x30]
push 1
mov ecx, ebp
mov dword [esp + 0x90], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [ebp]
push 0xff00
mov ecx, ebp
mov dword [esp + 0x98], eax
call dword [edx + 0x38]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x582]
push 0xffffffffffffffff
mov dword [esp + 0x28], esi
push esi
mov esi, dword [esp + 0xe0]
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.0040bedd
test edi, edi
mov dword [esp + 0x10], 0
jle 0x5b6d57
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jge 0x5b6d53
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00410d89
test eax, eax
mov eax, dword [esi + 8]
jne 0x5b6d20
mov dword [esp + 0x18], eax
inc eax
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0040bedd
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
inc edi
mov dword [edx + eax*4], 0
jmp 0x5b6d46
mov dword [esp + 0x18], eax
inc eax
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0040bedd
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x24], eax
mov dword [ecx + edx*4], 1
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x5b6ce7
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
cmp edi, eax
jge 0x5b6e8c
mov eax, dword [esp + 0x24]
shl eax, 4
add eax, 0x2f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00410d89
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
jne 0x5b6daa
mov edi, dword [esi + 8]
push 0xffffffffffffffff
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.0040bedd
mov edx, dword [esi + 4]
mov dword [edx + edi*4], 0
jmp 0x5b6e77
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x2c], eax
inc eax
push eax
mov ecx, esi
call fcn.0040bedd
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x28]
mov edx, edi
and edx, 0x80000001
mov dword [eax + ecx*4], 1
jns 0x5b6dd9
dec edx
or edx, 0xfffffffe
inc edx
je 0x5b6e0f
fild dword [esp + 0x24]
mov eax, dword [ebx + 0x57e]
mov ecx, dword [esp + 0x10]
sub esp, 8
fmul qword [0x66e370]
mov edx, dword [eax + ecx*4]
lea ecx, [esp + 0x24]
mov eax, dword [edx]
fstp qword [esp]
push eax
push str._s__.1f
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x5b6e39
mov eax, edi
cdq
sub eax, edx
mov edx, dword [ebx + 0x57e]
sar eax, 1
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
lea eax, [esp + 0x20]
mov edx, dword [ecx]
push edx
push str._s__d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
mov edx, dword [ebp]
push 0x128
lea ecx, [eax + 2]
add eax, 0x40
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x60], edi
push 0xffffffffffffffff
add edi, 0x10
push ecx
mov ecx, ebp
mov dword [esp + 0x70], edi
call dword [edx + 0x70]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5b6d75
mov esi, dword [esp + 0xd4]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0040bedd
mov edi, dword [esi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x60], 0x30d40
lea edx, [edi + 1]
push edx
call fcn.0040bedd
mov eax, dword [esi + 4]
mov dword [esp + 0x10], 0
mov dword [eax + edi*4], 0x30d40
mov edi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0x24], edi
jle 0x5b6f62
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jge 0x5b6f62
lea eax, [esp + 0x18]
mov edx, ecx
push eax
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.004078ec
mov ecx, dword [ebx + 0x183d]
test ecx, ecx
jne 0x5b6f22
mov ecx, dword [ebx + 0xa2]
mov eax, dword [eax + 0x1e0]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x5b6f22
inc edi
mov dword [esp + 0x14], edi
jmp 0x5b6f51
mov edi, dword [esi + 8]
mov eax, dword [esp + 0x5c]
push 0xffffffffffffffff
add eax, 0x30700
lea ecx, [edi + 1]
mov dword [esp + 0x60], eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0040bedd
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x28]
mov dword [edx + edi*4], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x5b6ed8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
cmp edi, eax
jge 0x5b7852
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], edi
call fcn.004078ec
mov ecx, dword [ebx + 0x183d]
test ecx, ecx
jne 0x5b6fb3
mov ecx, dword [ebx + 0xa2]
mov eax, dword [eax + 0x1e0]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x5b7841
mov eax, dword [esp + 0x2c]
xor edi, edi
test eax, eax
jle 0x5b7106
mov edx, dword [ebx + 0x3f2]
push edi
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edx*4]
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.00410d89
mov esi, dword [esi + 0x1c4]
imul esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c8]
test ecx, ecx
jne 0x5b6ff9
xor esi, esi
mov eax, dword [ebx + 0x1985]
test eax, eax
je 0x5b7034
mov edx, dword [ebx + 0x3de]
mov ecx, dword [ebx + 0x1859]
push ecx
push 0
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
shl eax, 1
cmp eax, esi
jl 0x5b70f7
jmp 0x5b70e8
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c0]
test eax, eax
jne 0x5b7095
mov eax, esi
mov ecx, dword [ebx + 0x1859]
cdq
sub eax, edx
mov edx, dword [ebx + 0x3de]
mov esi, eax
push ecx
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x14]
push 1
mov ecx, dword [eax + 4]
sar esi, 1
mov ecx, dword [ecx + edx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
shl eax, 1
cmp eax, esi
jl 0x5b70f7
mov ecx, dword [ebx + 0x3de]
mov eax, dword [ebx + 0x1859]
push eax
push 2
mov edx, dword [ecx + edi*4]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
jmp 0x5b701f
cmp eax, 1
jne 0x5b70bb
mov eax, dword [ebx + 0x3de]
mov edx, dword [ebx + 0x1859]
push edx
push 0
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
jmp 0x5b701f
cmp eax, 2
jne 0x5b70e8
mov edx, dword [ebx + 0x3de]
mov ecx, dword [ebx + 0x1859]
push ecx
push 0
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
shl eax, 1
cmp eax, esi
jl 0x5b70f7
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jl 0x5b6fc1
jmp 0x5b70ff
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.004078ec
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b718d
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
push 0
push 0x80c000
lea edi, [edx*4]
lea edx, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x34]
mov eax, dword [edi + eax]
push ebp
add eax, 0x4e20
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x80]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [esp + 0xc8]
shl ecx, 7
add ecx, 0x1388
push eax
mov dword [esp + 0xb8], ecx
mov ecx, dword [ebx + 0x3de]
mov eax, dword [ecx + edx*4]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
jmp 0x5b71f3
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
push 0
push 0x808080
lea edi, [eax*4]
mov eax, dword [edi + ecx]
lea ecx, [esp + 0xb0]
add eax, 0x4e20
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x78]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0xa0]
shl edx, 7
add edx, 0x1388
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], edx
mov edx, dword [ebx + 0x3de]
push ebp
push ecx
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
call dword [sym.imp.zmathdll.dll_public:_class_CSize___thiscall_ZPiece::DrawTo_class_CDC___class_CPoint___unsigned_long_int__int_]
mov ecx, eax
mov eax, dword [ecx]
cmp eax, 0x13880
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], edx
jge 0x5b7210
mov eax, 0x13880
mov ecx, dword [esi + 4]
xor edx, edx
mov esi, edx
mov ecx, dword [edi + ecx]
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], ecx
lea eax, [ecx + eax + 0x9c40]
mov edi, 0xfa0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], eax
mov eax, 0x51eb851f
mov dword [esp + 0x60], edi
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x34], edx
imul esi
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
imul dword [esp + 0x3c]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x3c], edx
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x70]
add ecx, eax
add edx, eax
mov eax, dword [ebx + 0x184d]
mov dword [esp + 0x38], ecx
test eax, eax
mov dword [esp + 0x40], edx
je 0x5b72e4
mov edx, dword [ebp]
push 0x44a2ff
mov ecx, ebp
call dword [edx + 0x38]
mov eax, dword [ebx + 0x3de]
mov ecx, dword [esp + 0x28]
push 0x129
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov edx, dword [eax + ecx*4]
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
mov eax, dword [edx + 0x3c]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x70]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0xd4]
add edx, 7
cmp eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], eax
jge 0x5b76da
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 4]
cmp dword [eax + ecx*4], 0
je 0x5b76c5
mov edx, dword [ebx + 0x3f2]
mov eax, ecx
push eax
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
mov edi, dword [edx + ecx*4]
mov edx, dword [esp + 0x44]
add edx, 0x10
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edx
call fcn.00410d89
fild dword [edi + 0x1c4]
mov dword [esp + 0x4c], eax
fimul dword [esp + 0x4c]
fadd qword [0x66e380]
fmul qword [0x66e370]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [edx + 0x1c8]
test eax, eax
je 0x5b76c5
mov eax, dword [ebx + 0x1985]
test eax, eax
je 0x5b73c3
mov eax, dword [ebx + 0x1859]
mov ecx, dword [ebx + 0x3de]
mov edx, dword [esp + 0x14]
push eax
push 0
mov eax, dword [ecx + edx*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
sub edi, eax
lea eax, [esp + 0x1c]
push edi
push 0x69e7f0
push eax
jmp 0x5b7689
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c0]
test eax, eax
jne 0x5b75c1
mov eax, edi
mov ecx, dword [ebx + 0x1859]
cdq
sub eax, edx
mov edx, dword [ebx + 0x3de]
mov edi, eax
mov eax, dword [esp + 0x14]
push ecx
push 1
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x18]
sar edi, 1
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
mov ecx, dword [ebx + 0x1859]
mov edx, dword [ebx + 0x3de]
mov esi, edi
push ecx
sub esi, eax
mov eax, dword [esp + 0x18]
push 2
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
sub edi, eax
test esi, esi
jne 0x5b74c4
test edi, edi
je 0x5b74ca
jl 0x5b74ca
mov edx, dword [ebp]
push 0xff00
mov ecx, ebp
call dword [edx + 0x38]
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push 0x129
push ecx
push 0xffffffffffffffff
push 0x6b96c8
mov ecx, ebp
call dword [eax + 0x70]
push esi
lea edx, [esp + 0x20]
push 0x69e7f0
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x80], eax
add eax, ecx
mov dword [esp + 0x8c], edx
cdq
sub eax, edx
add esp, 0xc
sar eax, 1
sub eax, 6
mov dword [esp + 0x7c], ecx
test esi, esi
mov dword [esp + 0x7c], eax
jne 0x5b74ef
mov eax, dword [ebp]
push 0x808080
jmp 0x5b7508
jge 0x5b7446
test edi, edi
jne 0x5b74d7
mov edx, dword [ebp]
push 0x808080
jmp 0x5b744e
jge 0x5b7446
mov eax, dword [ebp]
push 0xff
mov ecx, ebp
call dword [eax + 0x38]
jmp 0x5b7453
jge 0x5b7500
mov edx, dword [ebp]
push 0xff
mov ecx, ebp
call dword [edx + 0x38]
jmp 0x5b750d
mov eax, dword [ebp]
push 0xff00
mov ecx, ebp
call dword [eax + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
lea eax, [esp + 0x74]
push 0x12a
push eax
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call dword [edx + 0x70]
push edi
lea edx, [esp + 0x20]
push 0x69e7f0
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x80], eax
add eax, ecx
mov dword [esp + 0x8c], edx
cdq
sub eax, edx
add esp, 0xc
sar eax, 1
add eax, 6
mov dword [esp + 0x7c], ecx
test edi, edi
mov dword [esp + 0x74], eax
jne 0x5b757e
mov eax, dword [ebp]
push 0x808080
jmp 0x5b7597
jge 0x5b758f
mov edx, dword [ebp]
push 0xff
mov ecx, ebp
call dword [edx + 0x38]
jmp 0x5b759c
mov eax, dword [ebp]
push 0xff00
mov ecx, ebp
call dword [eax + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
lea eax, [esp + 0x74]
push 0x128
push eax
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call dword [edx + 0x70]
mov esi, dword [esp + 0xd4]
jmp 0x5b76c5
cmp eax, 1
jne 0x5b7638
mov edx, dword [ebx + 0x1859]
mov eax, dword [ebx + 0x3de]
mov ecx, dword [esp + 0x14]
push edx
push 0
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
sub edi, eax
mov eax, dword [0x6be7a0]
test eax, eax
push edi
je 0x5b7604
lea edx, [esp + 0x20]
push str.L:_d
push edx
jmp 0x5b760e
lea eax, [esp + 0x20]
push 0x6b96b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
test edi, edi
jne 0x5b7627
mov edx, dword [ebp]
push 0x808080
jmp 0x5b76a7
jge 0x5b769f
mov eax, dword [ebp]
push 0xff
mov ecx, ebp
call dword [eax + 0x38]
jmp 0x5b76ac
cmp eax, 2
jne 0x5b76c5
mov eax, dword [ebx + 0x1859]
mov ecx, dword [ebx + 0x3de]
mov edx, dword [esp + 0x14]
push eax
push 0
mov eax, dword [ecx + edx*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetPageMarkingNum_int__int_]
sub edi, eax
mov eax, dword [0x6be7a0]
test eax, eax
push edi
je 0x5b767f
lea eax, [esp + 0x20]
push str.R:_d
push eax
jmp 0x5b7689
lea ecx, [esp + 0x20]
push 0x6b96a8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
test edi, edi
jne 0x5b7627
mov edx, dword [ebp]
push 0x808080
jmp 0x5b76a7
mov edx, dword [ebp]
push 0xff00
mov ecx, ebp
call dword [edx + 0x38]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push 0x129
push ecx
push 0xffffffffffffffff
push edx
mov ecx, ebp
call dword [eax + 0x70]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5b730a
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x5c]
mov ecx, edx
xor edi, edi
mov dword [esp + 0x14], ecx
inc ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
cmp ecx, edi
jne 0x5b7710
cmp eax, edi
je 0x5b7705
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
jmp 0x5b7826
cmp eax, edi
jne 0x5b7754
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 1]
lea edi, [eax*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
inc eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
jmp 0x5b7826
mov edi, dword [esi + 0xc]
cmp ecx, edi
jg 0x5b777c
cmp ecx, edx
jle 0x5b776d
mov ecx, dword [esp + 0x14]
lea edi, [eax + edx*4]
inc ecx
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi + 8], eax
jmp 0x5b7826
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x5b77a6
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5b779a
mov eax, 4
jmp 0x5b77a6
cmp eax, 0x400
jle 0x5b77a6
mov eax, 0x400
add eax, edi
cmp ecx, eax
mov dword [esp + 0x18], eax
jl 0x5b77b4
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0xd8]
mov edi, eax
mov dword [esp + 0x50], eax
mov ecx, dword [edx + 8]
mov esi, dword [edx + 4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xd8]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x34], ecx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x5b6f72
mov edx, dword [esp + 0x5c]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 8]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x18], ebx
inc ebx
cmp ebx, edi
jne 0x5b7888
cmp eax, edi
je 0x5b787d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
jmp 0x5b7987
cmp eax, edi
jne 0x5b78c0
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jmp 0x5b7985
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
jg 0x5b78e2
cmp ebx, edx
jle 0x5b78da
mov ecx, ebx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 8], ebx
jmp 0x5b7987
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x5b790c
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5b7900
mov eax, 4
jmp 0x5b790c
cmp eax, 0x400
jle 0x5b790c
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x20], eax
jl 0x5b791a
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0xd8]
mov edi, eax
mov dword [esp + 0x48], eax
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
mov ecx, esi
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], esi
add esp, 8
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], eax
mov esi, ebx
xor edi, edi
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [ecx + eax*4], edx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 4]
mov ebx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ebx
inc ebx
cmp ebx, edi
jne 0x5b79c9
cmp eax, edi
je 0x5b79be
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
jmp 0x5b7ac0
cmp eax, edi
jne 0x5b7a01
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jmp 0x5b7ac0
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
jg 0x5b7a1f
cmp ebx, edx
jle 0x5b7a17
mov ecx, ebx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esi + 8], ebx
jmp 0x5b7ac0
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x5b7a49
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5b7a3d
mov eax, 4
jmp 0x5b7a49
cmp eax, 0x400
jle 0x5b7a49
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x20], eax
jl 0x5b7a57
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0xd8]
mov edi, eax
mov dword [esp + 0x48], eax
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], esi
add esp, 8
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], eax
mov esi, ebx
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x8c]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x30]
mov eax, dword [esp + 0x90]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x38]
mov ecx, dword [esp + 0x94]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [ebp]
push 0xffffffffffffffff
mov ecx, ebp
call dword [edx + 0x28]
mov edi, 0x66ea90
mov dword [esp + 0x84], edi
lea ecx, [esp + 0x84]
mov byte [esp + 0xc8], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x66e8a8
mov dword [esp + 0x64], edi
mov dword [esp + 0x84], esi
lea ecx, [esp + 0x64]
mov byte [esp + 0xc8], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], esi
mov dword [esp + 0xc8], 0xffffffff
call fcn.0063d7fa
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb4]
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 0xc