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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bb026
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
test ah, 0x80
je 0x49ddc9
mov eax, dword [esi + 0x1540]
xor ebx, ebx
cmp eax, ebx
je 0x49ddc9
mov eax, dword [esp + 0x1b0]
mov edx, dword [esi + 0x128]
push ebp
push edi
mov ecx, dword [eax + 4]
lea eax, [esp + 0x98]
mov dword [esi + 0x1544], ecx
mov ecx, dword [esi + 0x20]
push eax
push ecx
mov dword [esi + 0x1548], edx
mov dword [esi + 0x154c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
push ebx
mov ecx, esi
call fcn.00498250
mov ebp, eax
push ebx
push 1
mov ecx, esi
mov dword [esp + 0x1c], ebp
call fcn.00498250
mov edx, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], bl
imul edx, dword [esi + 0x1d8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esi + 0x1dc]
mov dword [esp + 0x74], ebx
stosb byte es:[edi], al
mov edi, dword [esi + 0x1c8]
or eax, 0xffffffff
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0xa8]
sub ecx, ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x1c4]
sub edi, edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
add ecx, eax
mov ebx, edi
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0x1298]
push 0x808080
sub eax, ebp
mov dword [esp + 0x24], ecx
push 1
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], 0xfffffffe
mov dword [esp + 0x5c], 1
mov dword [esp + 0x6c], 0x100
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], edi
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x28]
mov dword [esp + 0x1b0], 0
push ecx
mov ecx, dword [esp + 0x1bc]
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x1d8]
cdq
sub eax, edx
mov dword [esp + 0x10], 0
sar eax, 1
mov dword [esp + 0x4c], eax
test edi, edi
jle 0x49dd9a
jmp 0x49dc16
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.00496fc0
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], eax
lea eax, [esp + 0xa8]
push ecx
mov ecx, esi
mov dword [esp + 0x54], 1
mov dword [esp + 0x60], eax
call fcn.00493b50
mov edi, dword [esi + 0x1c4]
mov ecx, dword [esp + 0x74]
mov eax, dword [esi + 0x1d8]
sub edi, ebp
mov ebp, dword [esi + 0x60]
neg ebp
sbb ebp, ebp
and ebp, ecx
mov ecx, dword [esp + 0x78]
add ebp, eax
add ebp, ebx
test ecx, ecx
jl 0x49dc7d
imul eax, ecx
add edi, eax
mov eax, dword [esp + 0x20]
cmp edi, eax
jle 0x49dc7d
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x90], edx
lea edx, [esi + 0x1544]
add eax, ecx
push edx
mov edx, edi
push 0x49da40
sub edx, ecx
push eax
push edx
push eax
lea eax, [ecx + edi - 2]
mov dword [esp + 0xa0], ebx
push eax
mov dword [esp + 0xa0], edi
mov ebx, ebp
call dword [sym.imp.GDI32.dll_LineDDA]
mov eax, dword [esi + 0x1d8]
mov ecx, dword [esp + 0x10]
sub edi, eax
push ecx
mov eax, edi
mov edi, dword [esp + 0x90]
sub ebx, edi
mov ecx, esi
add ebx, eax
add eax, ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.00496fc0
push eax
mov ecx, esi
call fcn.00493a40
test eax, eax
je 0x49dd81
push 1
push eax
mov ecx, esi
call fcn.00493a70
test eax, eax
je 0x49dd81
push eax
mov ecx, esi
call fcn.00493a20
xor ecx, ecx
lea edx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0049ddf0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
neg eax
neg ecx
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
lea eax, [esi + 0x1544]
push eax
push 0x49da40
jne 0x49dd70
mov ecx, dword [esp + 0x3c]
add ecx, 0xa
push ecx
jmp 0x49dd78
mov edx, dword [esp + 0xac]
push edx
push ebx
push edi
push ebx
call dword [sym.imp.GDI32.dll_LineDDA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x1c], ebp
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x49dc0e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1b8]
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x28], 0x4bd508
lea ecx, [esp + 0x28]
mov dword [esp + 0x1b0], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop ebp
mov ecx, dword [esp + 0x1a0]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret 4