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

Disassembly:
push 0xffffffffffffffff
push 0x446c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0x449908
lea ecx, [esp + 0x5c]
mov dword [esp + 0x98], edi
call fcn.00444ff8
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.00402610
mov dword [esp + 0x6c], 0x4498b8
mov esi, dword [esp + 0xa0]
xor ecx, ecx
mov byte [esp + 0x98], 2
mov dword [esp + 0x5c], 0x449ecc
mov eax, dword [esi + 0xc]
mov dword [esp + 0x78], esi
cmp eax, edi
mov dword [esp + 0x74], edi
sete cl
cmp ecx, edi
mov dword [esp + 0x8c], ecx
je 0x422d1b
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x58]
cmp esi, edi
je 0x422caf
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
sub edx, ebx
push edx
mov edx, dword [esp + 0x80]
sub eax, edx
lea ecx, [esp + 0x70]
push eax
push esi
call fcn.00423070
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
call fcn.004230a0
mov edx, dword [esp + 0x80]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CDC::SetWindowOrg
jmp 0x422d2d
mov edx, dword [esi + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
xor eax, eax
xor ebx, ebx
mov al, byte [ebp + 0x50]
mov bl, byte [ebp + 0x54]
mov dword [esp + 0x24], eax
sub ebx, eax
mov edi, dword [ebp + 0x50]
xor eax, eax
mov al, byte [ebp + 0x51]
xor ecx, ecx
mov cl, byte [ebp + 0x55]
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x28], eax
sub ecx, eax
mov eax, dword [ebp + 0x54]
shr edi, 0x10
shr eax, 0x10
and edi, 0xff
and eax, 0xff
sub eax, edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
mov byte [esp + 0x98], 3
sub ecx, edx
mov dword [esp + 0x1c], ebx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x422da3
mov dword [esp + 0x10], ecx
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jle 0x422db8
mov dword [esp + 0x10], eax
jmp 0x422dc4
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x422dc4
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0x28]
fild dword [esp + 0x10]
fild dword [esi + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fdiv st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
xor eax, eax
test ecx, ecx
fdiv st(1)
mov dword [esp + 0x24], eax
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edi
fdiv st(1)
fstp dword [esp + 0x2c]
fstp st(0)
jle 0x422f14
fild dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SetRect]
fstp dword [esp + 0x28]
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fild dword [esp + 0x1c]
fstp dword [esp + 0x38]
fild dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
inc eax
mov dword [esp + 0x1c], eax
inc ecx
fstp dword [esp + 0x14]
fild dword [esp + 0x1c]
push ecx
fmul dword [esp + 0x24]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
push eax
push 0
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x58]
push eax
push edx
call edi
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x28]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x38]
call sub.MSVCRT.dll__ftol
and eax, 0xff
or ebx, eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call ebx
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x60]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x54]
cmp eax, dword [edx]
jg 0x422f5c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x422e3c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00423260
mov dword [esp + 0x3c], 0x4498e0
mov dword [esp + 0x98], 7
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 0xc
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
xor esi, esi
push edx
push esi
push eax
lea eax, [esp + 0x5c]
push eax
call edi
mov ebp, dword [ebp + 0x58]
push ebp
call ebx
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Attach
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, ebx
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x5c], 0x449ecc
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x98], 5
cmp eax, esi
je 0x42301a
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push esi
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x5c]
push edx
call fcn.004230a0
jmp 0x423022
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call fcn.00402f10
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call sub.MFC42.DLL_CDC::CDC
mov dword [esp + 0x3c], 0x4498e0
mov dword [esp + 0x98], 6
jmp 0x422f38