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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430038
push eax
mov dword fs:[0], esp
sub esp, 0x68
lea eax, [esp + 0x38]
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x8c]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x88]
xor esi, esi
mov ecx, dword [eax + 0x24]
cmp ecx, esi
je 0x425c5c
push 0x7fffffff
push 0x7fffffff
push 0x80000000
lea edx, [esp + 0x64]
push 0x80000000
push edx
jmp 0x425c6e
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x74]
push ecx
lea ecx, [esp + 0x5c]
mov eax, dword [eax + 4]
push eax
push esi
push esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ebx, dword [esp + 0x98]
cmp ebx, 1
jle 0x425d9b
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
sub eax, edx
mov dword [esp + 0x48], esi
dec eax
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
cdq
idiv ebx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x8c]
mov ecx, dword [esi + 4]
push ecx
inc eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
sub eax, edx
dec eax
cdq
idiv ebx
lea edx, [esp + 0x4c]
inc eax
mov dword [esp + 0x58], eax
mov eax, dword [esi]
push eax
push edx
call edi
lea eax, [esp + 0x58]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esi]
mov esi, dword [esi + 4]
neg esi
mov dword [esp + 0x5c], ecx
push esi
neg eax
lea ecx, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0x6c], edx
call edi
mov eax, dword [esp + 0x58]
mov ecx, 0x7fff
and eax, 0xffff
mov dword [esp + 0x58], ecx
imul eax, ebx
cmp eax, ecx
jg 0x425d49
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], ecx
and eax, 0xffff
imul eax, ebx
cmp eax, ecx
jg 0x425d61
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], ecx
and eax, 0xffff
imul eax, ebx
cmp eax, ecx
jg 0x425d79
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
and eax, 0xffff
imul eax, ebx
cmp eax, ecx
jle 0x425d92
mov dword [esp + 0x64], ecx
jmp 0x425f21
mov dword [esp + 0x64], eax
jmp 0x425f21
cmp ebx, 0xffffffff
jge 0x425e9b
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub eax, edi
mov esi, dword [esp + 0x8c]
imul eax, ebx
sub edx, ecx
mov ecx, dword [esi + 4]
imul edx, ebx
neg eax
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov dword [esp + 0x54], eax
xor eax, eax
push ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
neg edx
push eax
push ecx
mov dword [esp + 0x5c], edx
call edi
mov ecx, dword [esp + 0x48]
mov eax, ecx
cdq
idiv ebx
sub ecx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x4c]
mov eax, ecx
cdq
idiv ebx
lea eax, [esp + 0x48]
sub ecx, edx
lea edx, [esp + 0x58]
mov dword [esp + 0x4c], ecx
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x50]
neg esi
neg eax
push esi
push eax
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
mov dword [esp + 0x68], ecx
push eax
mov dword [esp + 0x70], edx
call edi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
cdq
idiv ebx
neg eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
cdq
idiv ebx
neg eax
mov dword [esp + 0x5c], eax
lea eax, [ecx - 1]
cdq
idiv ebx
mov edx, 1
sub edx, eax
mov eax, dword [esp + 0x64]
dec eax
mov dword [esp + 0x60], edx
cdq
idiv ebx
mov ecx, 1
sub ecx, eax
mov dword [esp + 0x64], ecx
jmp 0x425f21
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
sub eax, edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x8c]
sub edi, eax
mov dword [esp + 0x54], edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x4c]
push eax
push ecx
call edi
lea edx, [esp + 0x58]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x50]
neg esi
neg eax
push esi
push eax
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x60]
mov dword [esp + 0x68], ecx
push eax
mov dword [esp + 0x70], edx
call edi
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [esp + 0x60]
push ecx
call edi
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4266ed
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
xor esi, esi
mov eax, dword [edi + 0x74]
sub ecx, edx
mov edx, dword [ebp + 0x14]
mov si, word [eax + 0xe]
xor eax, eax
mov dword [edx + 4], ecx
mov ecx, 0x431ddc
mov dword [esp + 0x94], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
push eax
mov ecx, edi
mov byte [esp + 0x84], 1
call fcn.00412a20
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [ebp + 0x6c]
cmp esi, eax
jg 0x42605c
cmp dword [edi + 0xc], 4
jne 0x425fc2
cmp eax, 4
je 0x42605c
cmp esi, 8
jne 0x425fd5
cmp eax, esi
jne 0x425fd5
cmp dword [ebp + 0x58], 1
je 0x42605c
mov eax, dword [ebp + 0x14]
xor edx, edx
push pe_nt_image_headers32
mov dword [esp + 0x20], 0
mov word [eax + 0xe], si
mov ecx, dword [ebp + 0x14]
mov dx, word [ecx + 0xe]
mov ecx, ebp
push edx
call fcn.00425be0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x426040
cmp esi, 8
jg 0x426024
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
mov edx, dword [ecx + 0x20]
push eax
push edx
mov ecx, ebp
call fcn.00425630
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0x40]
push 1
push eax
call sub.MFC42.DLL_CDC::SelectPalette
mov dword [esp + 0x20], eax
jmp 0x4260ee
lea ecx, [esp + 0x38]
push 1
push ecx
mov ecx, dword [esp + 0xa4]
call sub.MFC42.DLL_CDC::SelectPalette
mov dword [esp + 0x20], eax
jmp 0x4260ee
mov edx, dword [ebp + 0x14]
mov ax, word [ebp + 0x6c]
push pe_nt_image_headers32
mov dword [esp + 0x20], 1
mov word [edx + 0xe], ax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dx, word [ecx + 0xe]
mov ecx, ebp
push edx
call fcn.00425be0
mov ecx, dword [ebp + 0x14]
push 1
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x42609a
lea edx, [ebp + 0x48]
push edx
jmp 0x42609e
lea eax, [ebp + 0x40]
push eax
mov ecx, dword [esp + 0xa4]
call sub.MFC42.DLL_CDC::SelectPalette
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov edi, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp esi, 0x18
rep stosb byte es:[edi], al
je 0x4260ee
mov edi, dword [ebp + 0x38]
push 0
push esi
mov ecx, ebp
call fcn.00425be0
push edi
push eax
mov eax, dword [esp + 0x44]
push 0
push eax
call dword [sym.imp.GDI32.dll_GetPaletteEntries]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x426115
mov esi, dword [ebp + 0x2c]
add ecx, ecx
mov edx, ecx
lea edi, [eax + 0x28]
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 + 0x94]
mov edi, dword [esp + 0x9c]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::CDC
test edi, edi
mov byte [esp + 0x80], 2
jne 0x42613f
xor eax, eax
jmp 0x426142
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov di, word [ecx + 0xe]
mov eax, dword [ecx + 0x20]
cmp di, 0x18
setne dl
mov dword [esp + 0x34], edx
lea edx, [ecx + eax*2 + 0x28]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [ecx + 4]
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, edi
and eax, 0xffff
imul eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
mov edi, eax
mov eax, ecx
imul eax, esi
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
xor edx, edx
sar eax, 5
shl eax, 2
sar edi, 5
mov dword [esp + 0x30], eax
mov eax, 0xefd7
shl edi, 2
div edi
mov dword [esp + 0x8c], edi
mov edi, eax
cmp edi, 0x400
mov dword [esp + 0x18], edi
jle 0x4261dd
mov edi, 0x400
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x10]
jge 0x4261ec
mov edi, 3
mov dword [esp + 0x18], edi
cmp ebx, 1
mov esi, edi
jle 0x4261fc
mov eax, edi
cdq
idiv ebx
mov edi, eax
jmp 0x426206
cmp ebx, 0xffffffff
jge 0x42620a
imul edi, ebx
neg edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x9c]
push esi
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
mov dword [esp + 0x2c], esi
je 0x426668
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x426668
jmp 0x426248
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x98]
mov edi, dword [esp + 0x18]
cmp edi, eax
jle 0x42624e
mov edi, eax
mov edx, dword [ebp + 0x14]
cmp ebx, 1
mov dword [esp + 0x90], edi
mov dword [edx + 8], edi
jle 0x42626e
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
imul ecx, ebx
mov dword [eax + 8], ecx
jmp 0x426284
cmp ebx, 0xffffffff
jge 0x426284
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 8]
sub eax, ebx
dec eax
cdq
idiv ebx
neg eax
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
mov ebx, dword [esp + 0x10]
mov edx, dword [eax + 8]
sub ebx, edi
imul edx, ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x28]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x4c]
dec ebx
mov esi, eax
imul ebx, ecx
add ebx, edx
add eax, edi
test edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x4c], eax
jle 0x4265d3
jmp 0x4262d6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x98]
cmp eax, 1
jle 0x426443
mov ecx, dword [esp + 0x94]
mov eax, 0x18
cmp ecx, eax
jne 0x42631c
mov ecx, dword [ebp + 0x14]
cmp word [ecx + 0xe], ax
jne 0x42631c
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ecx, dword [ebp + 0x24]
sub eax, edi
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x20]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004255d0
mov eax, dword [ebp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
lea esi, [edi + eax]
push eax
mov eax, dword [esp + 0x54]
push edx
dec eax
push eax
push ecx
mov ecx, dword [esp + 0x98]
call fcn.0040dcc0
mov edx, dword [esp + 0x94]
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x98]
push edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x8c]
push eax
mov eax, dword [ebp + 0x24]
push edx
push eax
push esi
call fcn.004135c0
mov ecx, edi
mov edi, dword [ebp + 0x24]
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x14], edx
dec ecx
test eax, eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x90], ecx
je 0x426402
test eax, eax
jle 0x4265c4
mov edi, dword [esp + 0x8c]
mov esi, eax
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, dword [eax + 4]
mov dx, word [eax + 0xe]
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [ebp + 0x3c]
push edx
mov edx, dword [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x34]
push edx
mov edx, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x24]
push ecx
push edx
push eax
push ebx
mov ecx, ebp
call fcn.004256d0
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
sub ebx, edi
dec esi
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], eax
jne 0x4263b6
jmp 0x4265c4
test eax, eax
jle 0x4265c4
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x24], edx
mov esi, dword [ebp + 0x24]
mov ecx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub ebx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x24], ecx
jne 0x42641c
jmp 0x4265c4
cmp eax, 0xffffffff
jge 0x426509
mov eax, dword [esp + 0x98]
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x90]
dec edx
push esi
push edx
push eax
call fcn.0040eb30
mov ecx, dword [esp + 0x94]
mov eax, 0x18
cmp ecx, eax
jne 0x4264a0
mov ecx, dword [ebp + 0x14]
cmp word [ecx + 0xe], ax
jne 0x4264a0
mov edx, dword [esp + 0x8c]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004255d0
mov eax, dword [esp + 0x98]
sub esi, eax
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
test eax, eax
mov dword [esp + 0x90], edi
je 0x4265a3
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov edx, dword [eax + 4]
mov cx, word [eax + 0xe]
mov eax, dword [ebp + 0x3c]
push edx
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x24]
push eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004256d0
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], eax
jmp 0x4265bd
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push eax
dec ecx
push esi
push ecx
mov ecx, dword [esp + 0x94]
push edx
call fcn.0040dcc0
inc esi
dec edi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x94]
cmp esi, 0x18
mov dword [esp + 0x90], edi
jne 0x42655e
mov eax, dword [ebp + 0x14]
cmp word [eax + 0xe], si
jne 0x42655e
mov ecx, dword [esp + 0x8c]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004255d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4265a3
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, dword [eax + 4]
mov dx, word [eax + 0xe]
mov eax, dword [ebp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x28]
push esi
push eax
mov eax, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x24]
push eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004256d0
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], eax
jmp 0x4265bd
mov ecx, dword [esp + 0x8c]
mov esi, dword [ebp + 0x24]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
test edi, edi
jg 0x4262d2
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x9c]
mov esi, dword [esp + 0x2c]
and ecx, 0xffff
push ecx
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [eax + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.GDI32.dll_SetDIBits]
mov edx, dword [esp + 0x6c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push edx
call edi
mov ecx, dword [esp + 0x6c]
mov esi, eax
mov eax, dword [ebp + 0x14]
push 0xcc0020
push 0
push 0
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x6c]
push esi
push ecx
call edi
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edx + 8]
add ecx, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x5c], ecx
jg 0x426239
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [esp + 0xa4]
call sub.MFC42.DLL_CDC::SelectPalette
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x426688
push esi
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4266a2
cmp dword [ebp + 0x54], 1
jne 0x4266a2
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Detach
push eax
call edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x80], 1
call fcn.0042d74a
mov esi, 0x431dc8
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x38], 0x431d20
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0x18