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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 0xe8]
xor eax, eax
push ebp
push 0x4abed8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x237], 0x10
jne 0x4abebc
mov ecx, 0x4abee8
mov edx, 0x4abef0
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x248]
xor edx, edx
push ebp
push 0x4abeb5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x148]
mov dl, 1
mov eax, dword [0x424d9c]
call fcn.0042aff0
mov dword [ebp - 0x38], eax
cmp byte [0x4fbd18], 0
je 0x4aad80
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39d], 1
je 0x4aad74
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x10
jne 0x4aad74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 1
je 0x4aad80
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.0042c628
jmp 0x4aad8b
mov dl, byte [ebp + 8]
mov eax, dword [ebp - 0x38]
call fcn.0042c628
mov eax, ebx
mov edx, 0x94
call fcn.00407698
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov dword [ebx], eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.0042699c
xor edx, edx
push ebp
push 0x4abe7d
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
add eax, 0x281
call fcn.0048be00
mov eax, dword [ebp - 4]
call fcn.004aac58
test al, al
je 0x4aadeb
lea eax, [ebp - 0x118]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4aadef
xor eax, eax
jmp 0x4aadf1
mov al, 1
mov byte [ebp - 0x11], al
push 0
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3bc]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.00453b10
cdq
push edx
push eax
call fcn.0042d6fc
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00418684
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 8]
call fcn.00426e84
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x10
je 0x4aae85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov eax, dword [eax + 0xc]
mov edx, dword [0x424d9c]
call fcn.004035f8
test al, al
je 0x4aae85
test byte [ebp + 0xc], 1
jne 0x4aae89
xor eax, eax
jmp 0x4aae8b
mov al, 1
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x360], 0
setne byte [ebp - 0x13]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x364], 0
setne byte [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x370], 0
je 0x4aaec5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0x11], 1
jne 0x4aaec9
xor eax, eax
jmp 0x4aaecb
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.00493d1c
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x80
jne 0x4aaf0d
mov eax, dword [ebp - 4]
mov si, 0xffb5
call fcn.00403668
test al, al
jne 0x4aaf11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 2
je 0x4aaf11
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 1
je 0x4aaf24
and byte [ebp + 0xc], 0xfb
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004aa3f4
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
jne 0x4aaf4b
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x11], 0
je 0x4aaf65
mov eax, dword [ebp - 0x34]
neg eax
push eax
push 0
lea eax, [ebp - 0x118]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
sub eax, edi
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x108]
push eax
sub edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
sub edx, edi
mov ecx, dword [ebp - 0x3c]
mov eax, esi
call fcn.00418684
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x44], 0xfffffffe
cmp dword [ebx + 8], 0
je 0x4ab934
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x220]
sub edx, eax
mov dword [ebp - 0x11c], edx
fild dword [ebp - 0x11c]
fdiv dword [0x4abef8]
call fcn.00402bb4
mov dword [ebp - 0x24], eax
jmp 0x4ab929
lea ecx, [ebp - 0x2c]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004989ac
mov esi, eax
mov eax, dword [ebp - 0x2c]
call fcn.00405718
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
jne 0x4ab05d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x220]
sub edx, eax
mov dword [ebp - 0x11c], edx
fild dword [ebp - 0x11c]
fdiv dword [0x4abef8]
call fcn.00402bb4
mov edx, dword [ebp - 0x20]
dec edx
mov ecx, dword [ebp - 4]
imul edx, dword [ecx + 0x220]
add eax, edx
mov dword [ebp - 0x24], eax
mov edi, dword [ebx + 8]
test byte [edi + 0xa], 1
jne 0x4ab073
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2b4]
mov eax, dword [ebx + 8]
test byte [eax + 0xa], 0x80
je 0x4ab08c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x224]
test byte [edx + 0xa], 4
jne 0x4ab08c
inc esi
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004aac70
lea ecx, [ebp - 0x124]
mov edx, dword [ebp - 0x34]
and edx, 1
mov eax, dword [ebp - 0x54]
and eax, 1
call fcn.0041865c
mov eax, dword [ebp - 0x124]
mov dword [ebx + 0x3b], eax
mov eax, dword [ebp - 0x120]
mov dword [ebx + 0x3f], eax
mov eax, dword [ebx + 8]
movzx edx, word [eax + 8]
add dword [ebp - 0x34], edx
movzx eax, word [eax + 8]
add eax, dword [ebp - 0x104]
mov dword [ebp - 0xfc], eax
test esi, esi
jg 0x4ab0e9
test byte [ebp + 0xc], 0x80
jne 0x4ab8e4
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebx + 8]
movzx edx, word [edx + 8]
cmp eax, edx
je 0x4ab13d
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 8]
movzx edx, word [eax + 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebx + 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0xec], eax
push 0
mov eax, dword [ebx + 0x3f]
push eax
mov eax, dword [ebx + 0x3b]
push eax
mov eax, dword [ebx]
call fcn.00426e84
push eax
call sub.gdi32.dll_SetBrushOrgEx
mov eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov cl, byte [ebp - 0x14]
mov dl, byte [ebp - 0x13]
mov eax, dword [ebp - 4]
call fcn.00497a94
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x144]
test al, al
jne 0x4ab856
mov al, byte [ebp + 0xc]
mov byte [ebx + 4], al
push 1
mov eax, dword [ebp - 0xfc]
push eax
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x54]
call fcn.00418684
lea eax, [ebp - 0x134]
push eax
mov edx, ebx
mov cl, byte [ebp - 0x12]
mov eax, dword [ebp - 4]
call fcn.00498654
lea esi, [ebp - 0xf8]
lea edi, [ebx + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x16], 0
je 0x4ab1e5
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004993e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov esi, dword [eax + 8]
jmp 0x4ab827
cmp byte [ebp - 0x16], 0
je 0x4ab232
mov eax, dword [esi + 0x30]
mov edx, dword [ebx + 0x10]
mov edi, dword [eax + edx*4]
mov dword [ebx + 0xc], edi
cmp dword [ebp - 0x44], 0xfffffffe
jne 0x4ab211
mov dword [ebp - 0x44], edi
mov edx, edi
mov eax, esi
call fcn.004915e4
mov al, byte [eax + 0x30]
mov byte [ebx + 0x3a], al
mov edx, dword [ebx + 0xc]
mov eax, esi
call fcn.004915e4
mov al, byte [eax + 0x44]
mov byte [ebx + 0x38], al
jmp 0x4ab24e
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5f]
mov byte [ebx + 0x3a], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x39e]
mov byte [ebx + 0x38], al
mov al, byte [ebp + 0xc]
mov byte [ebx + 4], al
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 1
je 0x4ab286
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [ebx + 8]
jne 0x4ab286
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [ebx + 0xc]
je 0x4ab282
cmp byte [ebp - 0x16], 0
jne 0x4ab286
and byte [ebx + 4], 0xf7
cmp byte [ebp - 0x16], 0
je 0x4ab2ba
mov eax, dword [ebx + 8]
test byte [eax + 0xa], 0x80
je 0x4ab2aa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xf], 4
je 0x4ab2aa
test byte [ebx + 4], 8
jne 0x4ab2ba
mov edx, dword [ebx + 0xc]
mov eax, esi
call fcn.004915e4
test byte [eax + 0x3c], 0x10
je 0x4ab2be
and byte [ebx + 4], 0xfd
mov eax, dword [esi + 0x18]
call fcn.00493d00
cmp eax, dword [ebx + 0xc]
sete byte [ebp - 0x17]
cmp byte [ebx + 0x3a], 0
je 0x4ab2db
lea eax, [ebx + 0x38]
call fcn.00450eec
cmp byte [ebp - 0x16], 0
je 0x4ab2f5
mov edx, dword [ebx + 0xc]
mov eax, esi
call fcn.004915e4
test byte [eax + 0x3c], 0x80
je 0x4ab7b2
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x17]
je 0x4ab7b2
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xd4]
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x54]
jle 0x4ab7a6
mov eax, dword [ebx]
push eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x1c4]
mov dword [ebx + 0x34], eax
push esi
lea esi, [ebx + 0x14]
lea edi, [ebx + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
cmp byte [ebx + 0x3a], 0
je 0x4ab35a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
sub dword [ebx + 0x2c], eax
jmp 0x4ab366
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
add dword [ebx + 0x24], eax
mov al, byte [ebp - 0x15]
and al, byte [ebp - 0x17]
je 0x4ab3b1
push 0
push 0
xor ecx, ecx
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x274]
mov dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 0xffffffff
jle 0x4ab3b8
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x370]
mov cl, byte [ebx + 0x3a]
mov eax, dword [ebp - 4]
call fcn.00497998
mov byte [ebx + 0x78], 0
jmp 0x4ab3b8
mov dword [ebx + 0x6c], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4ab401
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
push eax
mov edx, ebx
mov cl, 2
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x288]
cmp dword [ebx + 0x58], 0xffffffff
jle 0x4ab408
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x58]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x364]
mov cl, byte [ebx + 0x3a]
mov eax, dword [ebp - 4]
call fcn.00497998
jmp 0x4ab408
mov dword [ebx + 0x58], 0xffffffff
cmp byte [ebp - 0x13], 0
je 0x4ab462
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
push eax
mov eax, dword [ebx + 8]
test byte [eax + 0xa], 0x80
setne al
and eax, 0x7f
mov cl, byte [eax + 0x4f5854]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x288]
cmp dword [ebx + 0x44], 0xffffffff
jle 0x4ab469
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x44]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x360]
mov cl, byte [ebx + 0x3a]
mov eax, dword [ebp - 4]
call fcn.00497998
jmp 0x4ab469
mov dword [ebx + 0x44], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x4ab498
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.0042d784
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049796c
cmp byte [ebp - 0x16], 0
je 0x4ab4ad
push 0
lea ecx, [ebx + 0x14]
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00499618
test byte [ebx + 4], 0x20
je 0x4ab5b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x80
je 0x4ab5b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.004974f8
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
call fcn.00425d48
cmp byte [ebp - 0x17], 0
je 0x4ab592
mov eax, dword [ebp - 4]
cmp byte [eax + 0x393], 1
jne 0x4ab592
cmp byte [ebx + 0x3a], 0
jne 0x4ab54e
mov eax, dword [ebx + 0x1c]
dec eax
push eax
mov eax, dword [ebx + 0x20]
dec eax
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.0042d784
mov ecx, eax
mov eax, dword [ebp - 4]
imul ecx, dword [eax + 0x220]
add ecx, dword [ebx + 0x14]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x25c]
jmp 0x4ab5ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.0042d784
mov edx, dword [ebp - 4]
imul dword [edx + 0x220]
mov edx, dword [ebx + 0x1c]
sub edx, eax
dec edx
push edx
mov eax, dword [ebx + 0x20]
dec eax
push eax
mov edx, ebx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x25c]
jmp 0x4ab5ab
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
dec eax
push eax
mov edx, ebx
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x25c]
dec dword [ebx + 0x20]
dec dword [ebx + 0x30]
cmp byte [ebp - 0x16], 0
je 0x4ab63f
test byte [ebx + 4], 0x20
je 0x4ab63f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4ab63f
mov eax, dword [esi + 0x18]
test byte [eax + 0x15], 1
je 0x4ab5e6
mov eax, esi
call fcn.004915dc
dec eax
cmp eax, dword [ebx + 0x10]
jbe 0x4ab63f
cmp byte [ebx + 0x3a], 0
je 0x4ab601
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xfc]
test al, al
jne 0x4ab639
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.004974f8
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
call fcn.00425d48
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
dec eax
push eax
mov edx, ebx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x260]
dec dword [ebx + 0x1c]
dec dword [ebx + 0x2c]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov edx, ebx
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2f0]
cmp byte [ebp - 0x17], 0
je 0x4ab725
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 2
je 0x4ab6be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 0x20
je 0x4ab68c
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x10
jne 0x4ab6be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.0042d784
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2e4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x20
je 0x4ab712
mov eax, dword [ebx + 8]
test byte [eax + 0xa], 0x20
je 0x4ab712
mov eax, dword [ebx + 8]
test byte [eax + 0xb], 2
je 0x4ab6ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xd], 0x80
jne 0x4ab712
mov eax, dword [ebx + 0xc]
push eax
lea eax, [ebx + 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov al, byte [ebx + 0x3a]
push eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2e0]
cmp dword [ebx + 0x6c], 0xffffffff
jle 0x4ab725
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2d8]
cmp dword [ebx + 0x58], 0xffffffff
jle 0x4ab73c
push 0
mov edx, ebx
mov cl, 1
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2dc]
cmp dword [ebx + 0x44], 0xffffffff
jle 0x4ab753
push 1
mov edx, ebx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2dc]
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 1
je 0x4ab781
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [ebx + 8]
jne 0x4ab781
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [ebx + 0xc]
je 0x4ab78e
cmp byte [ebp - 0x16], 0
je 0x4ab78e
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x22c]
mov eax, dword [ebx + 0xc]
push eax
lea eax, [ebx + 0x14]
push eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x128]
cmp byte [ebp - 0x16], 0
je 0x4ab83f
jmp 0x4ab7c1
xor ecx, ecx
mov edx, dword [ebx + 0xc]
mov eax, esi
call fcn.00492c64
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebx]
call fcn.00426e84
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x4c]
jge 0x4ab83f
cmp dword [ebp - 0x30], 0xfffffffe
je 0x4ab83f
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004915e4
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x10], eax
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004915e4
test byte [eax + 0x3c], 0x80
je 0x4ab827
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004915e4
lea ecx, [ebx + 0x1c]
lea edx, [ebx + 0x14]
call fcn.00490cd4
mov eax, dword [ebx + 8]
movzx eax, word [eax + 8]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 8]
movzx eax, word [eax + 8]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0xc], 0xfffffffe
jg 0x4ab833
cmp byte [ebp - 0x16], 0
jne 0x4ab83f
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x4c]
jl 0x4ab1f6
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x130]
cmp byte [ebp - 0x11], 0
je 0x4ab89d
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00418684
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebx]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2e8]
push 0xcc0020
push 0
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x108]
push eax
mov eax, dword [ebp - 8]
call fcn.00426e84
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 8]
mov ax, word [eax + 8]
movzx edx, ax
add dword [ebp - 0x104], edx
mov edx, dword [ebp - 0x104]
cmp edx, dword [ebp - 0x40]
jge 0x4ab934
cmp byte [ebp - 0x11], 0
je 0x4ab919
movzx eax, ax
neg eax
push eax
push 0
lea eax, [ebp - 0x118]
push eax
call sub.user32.dll_OffsetRect
mov cl, 1
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
call fcn.004aa14c
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4aaff1
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp - 0x40]
jge 0x4abe5a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xf8]
push eax
mov esi, dword [ebp - 0x108]
mov ecx, esi
xor edx, edx
mov eax, esi
call fcn.00418684
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.00418684
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.0042c628
mov edx, dword [ebp - 0x100]
sub edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0xfc]
sub edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov edx, eax
lea ecx, [ebp - 0x108]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x228]
test al, al
jne 0x4abd7f
cmp byte [ebp - 0x12], 0
je 0x4abaa7
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 2
je 0x4aba75
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.00428dd0
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.0049b044
jmp 0x4abd7f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.00428dd0
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.0049b1fc
jmp 0x4abd7f
cmp byte [ebp - 0x16], 0
je 0x4abd3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov esi, dword [eax + 8]
cmp dword [ebp - 0x44], 0xfffffffe
jne 0x4abb28
xor edx, edx
mov eax, esi
call fcn.00492b68
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xfffffffe
je 0x4abb20
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
call fcn.0048fea0
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
cmp eax, dword [ebp - 0x108]
jg 0x4abb56
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.00492c64
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xfffffffe
jne 0x4abacf
jmp 0x4abb56
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
call fcn.0048fea0
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.004974f8
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov eax, dword [eax + 0xc]
pop edx
call fcn.00425d48
jmp 0x4abc7f
test byte [ebp + 0xc], 0x20
je 0x4abbe2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4abbe2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4abbe2
mov eax, dword [esi + 0x18]
test byte [eax + 0x15], 1
je 0x4abbba
mov eax, esi
call fcn.004915dc
dec eax
cmp eax, dword [ebp - 0x44]
jbe 0x4abbe2
mov eax, dword [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xf0]
dec eax
push eax
mov edx, ebx
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x260]
dec dword [ebp - 0xf0]
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
test byte [eax + 0x3c], 0x10
jne 0x4abc13
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov eax, dword [eax + 0x14]
pop edx
call fcn.00426514
jmp 0x4abc29
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00426514
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
lea edx, [ebp - 0xf8]
call fcn.004268ec
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.00492c64
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xfffffffe
je 0x4abc7f
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
call fcn.0048fea0
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004915e4
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0x44], 0xfffffffe
je 0x4abc9a
mov eax, dword [ebp - 0x100]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf8]
jg 0x4abb80
mov eax, dword [ebp - 0x100]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf0]
jle 0x4abd22
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xf0], eax
test byte [ebp + 0xc], 0x20
je 0x4abcf9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4abcf9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4abcf9
mov eax, dword [esi + 0x18]
test byte [eax + 0x15], 1
jne 0x4abcf9
inc dword [ebp - 0xf8]
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00426514
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
lea edx, [ebp - 0xf8]
call fcn.004268ec
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x4abd7f
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00426514
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
lea edx, [ebp - 0x108]
call fcn.004268ec
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x11], 0
je 0x4abe1b
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 4]
add eax, 0x281
call fcn.0048be00
mov eax, dword [ebp - 0xc]
neg eax
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3b4]
push eax
mov eax, dword [ebp - 0x10]
neg eax
add eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0xf8]
push eax
call sub.user32.dll_OffsetRect
push 0
mov eax, dword [ebp - 0x10]
and eax, 1
push eax
push 0
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
call sub.gdi32.dll_SetBrushOrgEx
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x2e8]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426e84
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00426e84
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abe84
mov eax, dword [ebp - 0x38]
call fcn.0042b5b8
call fcn.00426d7c
mov eax, dword [ebp - 0x38]
call fcn.0040346c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abedf
lea eax, [ebp - 0x2c]
mov edx, dword [0x485d54]
call fcn.004059d4
ret