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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57024d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x5d4d80]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
push 0
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00428961
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x94]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x18]
push eax
call fcn.0048f8b3
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x70]
push ecx
mov ebx, eax
call fcn.0041ed50
xor ebx, ebx
lea eax, [esi + 0xf4]
mov dword [esp + 0xb0], ebx
cmp eax, ebx
je 0x41efe7
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x41efe7
mov edx, dword [esp + 0x6c]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
jmp 0x41efeb
mov dword [esp + 0x1c], ebx
push 0xffffff
lea ecx, [esp + 0x24]
call fcn.0048fda1
cmp eax, ebx
jne 0x41f001
xor eax, eax
jmp 0x41f004
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBrush.0
call fcn.0040f8b0
push 0xc0c0c0
push 1
push ebx
lea ecx, [esp + 0x5c]
call fcn.0048fd58
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb4], 1
call fcn.0048fc84
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
dec eax
push eax
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x74]
call fcn.0048f5c5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
dec eax
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.0048f14e
mov ecx, esi
call fcn.004955a9
mov edx, dword [eax + 0x20]
push ebx
push ebx
push 0x1200
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jle 0x41f218
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x18]
add eax, 0x30
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.0041eb80
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x6c]
call eax
lea ecx, [esp + 0x58]
push ecx
push 2
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x5c], eax
call fcn.00428f42
test ebx, ebx
jne 0x41f27f
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x64]
push 0xffffffffffffffff
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], edx
push 0xffffffffffffffff
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x13c]
sub eax, dword [esi + 0x138]
sar eax, 2
cmp edi, eax
jb 0x41f138
call fcn.0053e0a6
mov ecx, dword [esi + 0x138]
cmp dword [ecx + edi*4], 0
je 0x41f157
mov eax, dword [esp + 0x6c]
push 0x400
push 4
lea edx, [esp + 0x30]
push edx
push eax
jmp 0x41f165
mov edx, dword [esp + 0x6c]
push 0
push 4
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFrameControl]
call fcn.00427cc5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41f2f6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x18]
push 0x5aa810
push edx
mov byte [esp + 0xbc], 2
call fcn.00402c70
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx - 0xc]
mov edx, dword [esp + 0x74]
add esp, 0xc
push 0x824
lea ecx, [esp + 0x5c]
push ecx
push eax
mov eax, dword [edx + 0x68]
push ebx
lea ecx, [esp + 0x78]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xb0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [edx + 0x30]
lea ecx, [esp + 0x6c]
call eax
inc ebx
cmp ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
jl 0x41f0a6
xor ebx, ebx
mov edx, dword [esp + 0x6c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x38]
push ecx
push edx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41f23a
push eax
mov eax, dword [esp + 0x70]
push eax
call esi
mov byte [esp + 0xb0], bl
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], vtable.CPen.0
call fcn.0040f8b0
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0xb4], 0xffffffff
call fcn.0041ee50
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x124]
sub ecx, dword [esi + 0x120]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x41f2a5
call fcn.0053e0a6
mov eax, dword [esi + 0x120]
lea edx, [edi + edi*2]
mov ecx, dword [eax + edx*8 + 0x10]
sub ecx, dword [eax + edx*8 + 0xc]
lea eax, [eax + edx*8]
sar ecx, 2
mov dword [esp + 0x14], eax
cmp ebx, ecx
jb 0x41f2cd
call fcn.0053e0a6
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
lea eax, [edx + ebx*4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0x824
lea edx, [esp + 0x5c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x78]
call edx
jmp 0x41f1f5
push 0x80004005
call fcn.00403aa0
int3