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

Disassembly:
push 0xffffffffffffffff
push 0x56b7c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
mov eax, dword [0x5c6590]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
cmp dword [edi + 0x90], 0
je 0x41d6b0
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0xc4]
mov ebx, dword [edi + 0xbc]
mov esi, dword [edi + 0xc0]
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc8]
add eax, 2
xor ecx, ecx
add ebx, 2
add esi, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], vtable.CPen.0
mov dword [esp + 0x4c], ecx
mov eax, dword [edi + 0x5c]
push eax
push 1
push ecx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x24]
call fcn.00444b1d
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00444c58
mov dword [esp + 0x54], 0
test ebx, ebx
jl 0x41d377
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x54]
sub eax, esi
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00444549
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x54]
add eax, ecx
push eax
push edx
mov ecx, ebp
call fcn.00443f74
mov eax, dword [esp + 0x54]
inc eax
cmp eax, ebx
mov dword [esp + 0x54], eax
jle 0x41d333
mov dword [esp + 0x54], 0
test esi, esi
jl 0x41d3c7
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
push eax
sub ecx, ebx
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00444549
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add ecx, edx
push eax
push ecx
mov ecx, ebp
call fcn.00443f74
mov eax, dword [esp + 0x54]
inc eax
cmp eax, esi
mov dword [esp + 0x54], eax
jle 0x41d383
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], 0
jl 0x41d420
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
sub eax, esi
push eax
add edx, ecx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00444549
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x58]
add ecx, eax
push ecx
mov ecx, ebp
call fcn.00443f74
mov eax, dword [esp + 0x54]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
jle 0x41d3d6
xor esi, esi
cmp dword [esp + 0x18], esi
jl 0x41d46e
jmp 0x41d430
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
lea eax, [esi + edx]
push eax
sub ecx, ebx
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00444549
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x14]
push ecx
lea ecx, [eax + edx + 1]
push ecx
mov ecx, ebp
call fcn.00443f74
inc esi
cmp esi, dword [esp + 0x18]
jle 0x41d430
cmp dword [edi + 0x94], 0
je 0x41d68e
mov eax, 1
sub dword [esp + 0x38], eax
sub dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x5c], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov ecx, edi
mov byte [esp + 0x4c], 1
call fcn.0044d375
test eax, eax
jne 0x41d4c5
mov ecx, dword [edi + 0xb4]
jmp 0x41d61d
cmp dword [edi + 0x78], 0
je 0x41d5a7
cmp dword [edi + 0x74], 0
je 0x41d533
mov ecx, dword [edi + 0xac]
movzx eax, cl
mov edx, ecx
or eax, 0xffffff00
shr edx, 8
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [edi + 0x134]
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x130]
push edx
mov edx, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea esi, [esp + 0x34]
mov dword [eax + 0xc], edx
call fcn.0041d6d0
cmp dword [edi + 0x78], 0
je 0x41d5a7
cmp dword [edi + 0x74], 0
jne 0x41d59d
mov ecx, dword [edi + 0xa4]
movzx eax, cl
mov edx, ecx
or eax, 0xffffff00
shr edx, 8
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [edi + 0x134]
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x130]
push edx
mov edx, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea esi, [esp + 0x34]
mov dword [eax + 0xc], edx
call fcn.0041d6d0
cmp dword [edi + 0x78], 0
jne 0x41d675
cmp dword [edi + 0x74], 0
je 0x41d60b
mov ecx, dword [edi + 0xac]
movzx eax, cl
mov edx, ecx
or eax, 0xffffff00
shr edx, 8
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [edi + 0x134]
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x130]
push edx
mov edx, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea esi, [esp + 0x34]
mov dword [eax + 0xc], edx
call fcn.0041d6d0
cmp dword [edi + 0x78], 0
jne 0x41d675
cmp dword [edi + 0x74], 0
jne 0x41d675
mov ecx, dword [edi + 0x9c]
mov edx, ecx
movzx eax, cl
shr edx, 8
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [edi + 0x134]
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x130]
push edx
mov edx, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
lea esi, [esp + 0x34]
mov dword [eax + 0xc], edx
call fcn.0041d6d0
mov ebp, dword [ebp + 4]
mov esi, dword [esp + 0x18]
push ebp
push esi
call sub.gdiplus.dll_GdipReleaseDC
push esi
mov byte [esp + 0x50], 0
call sub.gdiplus.dll_GdipDeleteGraphics
lea ecx, [esp + 0x20]
call fcn.00444b75
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CPen.0
call fcn.004030c0
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4