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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d9f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0x420cc8
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 8
mov byte [esp + 0xa8], 1
call dword [eax + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xff
call edi
push eax
lea ecx, [esp + 0x48]
call sub.MFC71.DLL_CGdiObject::Attach
push 0xff00
call edi
push eax
lea ecx, [esp + 0x38]
call sub.MFC71.DLL_CGdiObject::Attach
lea ecx, [esi + 0x15c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x64], edx
mov dword [esp + 0x2c], ecx
jle 0x4141d7
cmp ecx, dword [esp + 0x68]
jne 0x4141c4
mov edx, dword [esi + 0xe0]
xor eax, eax
test edx, edx
mov dword [esp + 0x30], eax
jle 0x4141c4
mov edi, edi
cmp eax, dword [esp + 0x64]
jne 0x4141ad
fild dword [esp + 0x30]
mov edi, dword [esi + 0x118]
cmp edi, dword [esi + 0x11c]
fmul dword [esi + 0xe8]
mov dword [esp + 0x28], edi
fmul dword [0x41f854]
fstp dword [esp + 0x3c]
fild dword [esp + 0x2c]
fmul dword [esi + 0xec]
fmul dword [0x41f854]
fstp dword [esp + 0x40]
je 0x4141ad
mov eax, dword [esp + 0x6c]
mov ecx, dword [edi]
inc eax
cmp ecx, eax
jne 0x414194
mov eax, dword [esi + 0x198]
mov edx, dword [esi + 0x194]
mov ecx, dword [esi + 0x19c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edx
mov edx, dword [esi + 0x1a0]
mov dword [esp + 0x7c], ecx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x78]
sub esp, 0x10
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x84]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
lea ebx, [esi + 0x128]
mov dword [ecx + 0xc], eax
push edi
mov ecx, ebx
call fcn.004104b0
test al, al
je 0x414194
mov eax, dword [esi + 0x1dc]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0xc], ecx
je 0x413f23
jmp 0x413d10
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + 0xad]
test al, al
jne 0x413d2c
mov dl, byte [ecx + 0xae]
test dl, dl
je 0x413f0a
test al, al
je 0x413d33
lea ecx, [esp + 0x44]
push ecx
jmp 0x413d38
lea edx, [esp + 0x34]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC71.DLL_CDC::SelectObject
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x24]
cmp eax, dword [ecx + 0x28]
je 0x413f0a
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov al, byte [edi + 4]
xor al, byte [ebp + 0xc]
mov eax, dword [esi]
je 0x413d6c
cmp eax, 1
jg 0x413eed
jmp 0x413d75
cmp eax, 1
je 0x413eed
lea ecx, [esp + 0x3c]
push ecx
sub esp, 0x10
lea edx, [esi + 0x1c]
mov ecx, dword [edx]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
push edi
mov ecx, ebx
mov dword [eax + 0xc], edx
call fcn.004104b0
test al, al
je 0x413eed
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi - 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x9c]
push edx
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [ebx + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
fld dword [esp + 0x5c]
fsub dword [ebx]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x60]
fsub dword [ebx + 4]
mov dword [esp + 0x54], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov edi, dword [ebx + 0x18]
fld dword [0x41f86c]
sub edi, eax
mov eax, dword [esp + 0x14]
fdiv dword [eax + 0x130]
fld st(0)
fmul dword [esi - 8]
fadd dword [0x41f850]
call fcn.0041c780
test eax, eax
mov esi, eax
jg 0x413e36
mov esi, 1
mov ecx, dword [esp + 0x10]
fmul dword [ecx - 4]
fadd dword [0x41f850]
call fcn.0041c780
test eax, eax
mov ecx, eax
jg 0x413e53
mov ecx, 1
cmp esi, 1
jg 0x413e5d
mov esi, 3
cmp ecx, 1
jg 0x413e67
mov ecx, 3
fld dword [0x41f870]
mov edx, dword [esp + 0x10]
fld dword [edx - 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x413e83
cmp esi, ecx
jl 0x413e83
mov esi, ecx
mov eax, 0x55555555
imul esi
sub edx, esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
push edi
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_Ellipse]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x28]
add esi, 0x3c
lea edx, [esi - 0x10]
cmp edx, eax
mov dword [esp + 0x10], esi
jne 0x413d57
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.00406970
mov eax, dword [esi + 0x1dc]
cmp dword [esp + 0xc], eax
jne 0x413d0c
mov eax, dword [esi + 0x1dc]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0xc], ecx
je 0x414194
jmp 0x413f40
mov ecx, dword [esp + 0xc]
lea ecx, [ecx]
mov al, byte [ecx + 0xad]
test al, al
jne 0x413f5c
mov dl, byte [ecx + 0xae]
test dl, dl
je 0x41417b
test al, al
je 0x413f63
lea eax, [esp + 0x44]
push eax
jmp 0x413f68
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC71.DLL_CDC::SelectObject
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x34]
cmp eax, dword [ecx + 0x38]
je 0x41417b
lea esi, [eax + 0x20]
mov dword [esp + 0x50], esi
lea edx, [esp + 0x3c]
push edx
sub esp, 0x10
lea eax, [esi + 0x80]
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
push edi
mov ecx, ebx
call fcn.004104b0
test al, al
je 0x41415b
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], 2
lea esp, [esp]
mov al, byte [ebp + 0xc]
mov cl, byte [edi + 4]
xor cl, al
mov eax, dword [esi]
je 0x413fe7
cmp eax, 1
jg 0x414141
jmp 0x413ff0
cmp eax, 1
je 0x414141
lea edx, [esp + 0x3c]
push edx
lea eax, [esi - 0x10]
push eax
push edi
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004067c0
fld dword [0x41f86c]
fdiv dword [ebx + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
fld dword [esp + 0x80]
fsub dword [ebx]
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fld dword [esp + 0x84]
fsub dword [ebx + 4]
mov dword [esp + 0x54], eax
fmul st(1)
fadd qword [0x41f848]
call fcn.0041c780
fstp st(0)
mov ecx, dword [esp + 0x14]
fld dword [0x41f86c]
fdiv dword [ecx + 0x130]
mov edi, dword [ebx + 0x18]
sub edi, eax
fld st(0)
fmul dword [esi - 8]
fadd dword [0x41f850]
call fcn.0041c780
test eax, eax
mov esi, eax
jg 0x41408a
mov esi, 1
mov edx, dword [esp + 0x10]
fmul dword [edx - 4]
fadd dword [0x41f850]
call fcn.0041c780
test eax, eax
mov ecx, eax
jg 0x4140a7
mov ecx, 1
cmp esi, 1
jg 0x4140b1
mov esi, 3
cmp ecx, 1
jg 0x4140bb
mov ecx, 3
mov eax, dword [esp + 0x10]
fld dword [0x41f870]
fld dword [eax - 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4140d7
cmp esi, ecx
jl 0x4140d7
mov esi, ecx
mov eax, 0x55555555
imul esi
sub edx, esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add esi, 0x3c
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], eax
jne 0x413fd0
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x38]
add esi, 0xb0
lea ecx, [esi - 0x20]
cmp ecx, eax
mov dword [esp + 0x50], esi
jne 0x413f87
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.00406970
mov eax, dword [esi + 0x1dc]
cmp dword [esp + 0xc], eax
jne 0x413f39
mov eax, dword [esi + 0x11c]
add edi, 0x14
cmp edi, eax
mov dword [esp + 0x28], edi
jne 0x413c78
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0xe0]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x413c30
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0xe4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jl 0x413c10
mov esi, 0x41f858
lea ecx, [esp + 0x34]
mov byte [esp + 0xa4], 0
mov dword [esp + 0x34], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x44]
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x44], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8