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

Disassembly:
push 0xffffffffffffffff
push 0x429b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], vtable.CBrush.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x98], ebx
call fcn.004231bc
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.00404dc0
mov dword [esp + 0x6c], 0x42b8c8
mov esi, dword [esp + 0xa0]
xor ecx, ecx
mov byte [esp + 0x98], 2
mov dword [esp + 0x5c], 0x42ba1c
mov eax, dword [esi + 0xc]
mov dword [esp + 0x78], esi
cmp eax, ebx
mov dword [esp + 0x74], ebx
sete cl
cmp ecx, ebx
mov dword [esp + 0x8c], ecx
je 0x40486b
mov eax, dword [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, esi
call dword [eax + 0x50]
cmp esi, ebx
je 0x4047ff
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x60]
call fcn.00423273
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
sub edx, ebp
push edx
mov edx, dword [esp + 0x80]
sub eax, edx
lea ecx, [esp + 0x70]
push eax
push esi
call fcn.00404e30
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x60]
call fcn.00404e60
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 fcn.0042362d
jmp 0x40487d
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 ecx, ecx
xor eax, eax
mov cl, byte [edi + 0x54]
mov al, byte [edi + 0x50]
mov ebp, ecx
mov dword [esp + 0x24], eax
sub ebp, eax
mov ebx, dword [edi + 0x50]
xor eax, eax
xor edx, edx
mov al, byte [edi + 0x51]
mov dl, byte [edi + 0x55]
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x28], eax
sub edx, eax
mov eax, dword [edi + 0x54]
mov esi, edx
shr ebx, 0x10
shr eax, 0x10
and ebx, 0xff
and eax, 0xff
sub eax, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 3
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
mov dword [esp + 0x1c], ebp
sub ecx, edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x4048f5
mov dword [esp + 0x10], ecx
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
cmp eax, edx
jle 0x40490a
mov dword [esp + 0x10], eax
jmp 0x404916
cmp esi, ecx
mov dword [esp + 0x10], esi
jg 0x404916
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x10]
fild dword [esi + 8]
mov eax, dword [esp + 0x24]
fdiv st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], eax
fdiv st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
fdiv st(1)
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ebx
fdiv st(1)
fstp dword [esp + 0x2c]
fstp st(0)
jle 0x404a70
fild dword [esp + 0x14]
mov ebp, 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 edx, dword [esi + 0xc]
inc eax
mov dword [esp + 0x1c], eax
inc edx
fstp dword [esp + 0x14]
fild dword [esp + 0x1c]
push edx
fmul dword [esp + 0x24]
call fcn.0040e17c
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
push eax
push 0
call fcn.0040e17c
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
fld dword [esp + 0x14]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x28]
call fcn.0040e17c
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
xor ebx, ebx
mov bh, al
fadd dword [esp + 0x18]
call fcn.0040e17c
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
mov bl, al
shl ebx, 8
fadd dword [esp + 0x38]
call fcn.0040e17c
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 fcn.00423aa7
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x4c]
and eax, edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.00423afe
mov eax, dword [esp + 0xa8]
mov eax, dword [eax]
test eax, eax
je 0x404ab8
mov ecx, dword [esp + 0x54]
cmp ecx, eax
jg 0x404bc2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40498e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.00404cc0
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 9
lea ecx, [esp + 0x3c]
call fcn.00423afe
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
push edx
push 0
lea eax, [esp + 0x58]
push 0
push eax
call ebp
mov edi, dword [edi + 0x58]
push edi
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00423aa7
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x4c]
neg eax
sbb eax, eax
and eax, edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.00423afe
mov dword [esp + 0x5c], 0x42ba1c
mov eax, dword [esp + 0x8c]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x98], 5
je 0x404b80
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x98]
sub edx, eax
push edx
mov edx, dword [esp + 0x98]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x98]
call fcn.00404ed0
mov eax, dword [esp + 0x74]
cmp eax, esi
jne 0x404b70
xor eax, eax
push eax
mov eax, dword [esp + 0x64]
push eax
call fcn.0042339e
jmp 0x404b88
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x64]
push eax
call fcn.0042339e
jmp 0x404b88
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
call fcn.004012b0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.004232db
mov dword [esp + 0x3c], vtable.CGdiObject.0
mov dword [esp + 0x98], 6
jmp 0x404a94
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
push 0
push ecx
lea ecx, [esp + 0x5c]
push ecx
call ebp
mov edi, dword [edi + 0x58]
push edi
call ebx
push eax
lea ecx, [esp + 0x40]
call fcn.00423aa7
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
lea edx, [esp + 0x4c]
and eax, ebx
push eax
mov eax, dword [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
call fcn.00423afe
mov dword [esp + 0x5c], 0x42ba1c
mov ecx, dword [esp + 0x8c]
xor eax, eax
cmp ecx, eax
mov byte [esp + 0x98], 8
je 0x404c72
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x98]
sub edx, eax
push edx
mov edx, dword [esp + 0x98]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x98]
call fcn.00404ed0
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x5c]
push eax
call fcn.00404e60
jmp 0x404c7a
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 7
call fcn.004012b0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.004232db
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x3c], vtable.CBrush.0
call fcn.00401270
jmp 0x404a9d