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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
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 - 0x58]
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 edi, [ebp - 0xec]
xor eax, eax
push ebp
push 0x4b08ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x237], 0x80
jne 0x4b08e3
mov ecx, 0x4b0910
mov edx, 0x4b0918
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x274]
xor eax, eax
push ebp
push 0x4b08dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x150]
mov dl, 1
mov eax, dword [0x429dd0]
call fcn.0043074c
mov dword [ebp - 0x38], eax
cmp byte [0x5d4288], 0
je 0x4af75c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39d], 1
je 0x4af750
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x80
jne 0x4af750
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 1
je 0x4af75c
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.00431d8c
jmp 0x4af767
mov dl, byte [ebp + 8]
mov eax, dword [ebp - 0x38]
call fcn.00431d8c
mov eax, edi
mov edx, 0x94
call fcn.0040840c
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042ba18
xor eax, eax
push ebp
push 0x4b08a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 4]
add eax, 0x281
call fcn.0048acd0
mov eax, dword [ebp - 4]
call fcn.004aeea8
test al, al
je 0x4af7c7
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4af7cb
xor eax, eax
jmp 0x4af7cd
mov al, 1
mov byte [ebp - 0x11], al
push 0
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f0]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0044b2f4
cdq
push edx
push eax
call fcn.00432ec8
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c8a4
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 8]
call fcn.0042bf24
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x10
je 0x4af861
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov eax, dword [eax + 0xc]
mov edx, dword [0x429dd0]
call fcn.00403f40
test al, al
je 0x4af861
test byte [ebp + 0xc], 1
jne 0x4af865
xor eax, eax
jmp 0x4af867
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 0x4af8a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0x11], 2
jne 0x4af8a5
xor eax, eax
jmp 0x4af8a7
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.004947bc
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x80
jne 0x4af8e9
mov eax, dword [ebp - 4]
mov si, 0xffb5
call fcn.00403fb0
test al, al
jne 0x4af8ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 2
je 0x4af8ed
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 1
je 0x4af900
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 - 0x54]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ae2dc
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
jne 0x4af927
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x11], 0
je 0x4af941
mov eax, dword [ebp - 0x34]
neg eax
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x10]
add eax, ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x54]
sub eax, esi
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x10c]
push eax
sub esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
sub edx, esi
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.0041c8a4
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x48], 0xfffffffe
cmp dword [edi + 8], 0
je 0x4b035b
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 - 0x120], edx
fild dword [ebp - 0x120]
fdiv dword [0x4b0920]
call fcn.004033e8
mov dword [ebp - 0x24], eax
jmp 0x4b0351
lea ecx, [ebp - 0x2c]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004995ec
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
call fcn.004061d8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
jne 0x4afa3b
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 - 0x120], edx
fild dword [ebp - 0x120]
fdiv dword [0x4b0920]
call fcn.004033e8
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 eax, dword [edi + 8]
test byte [eax + 0xa], 1
jne 0x4afa52
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x300]
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4afa6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 4
jne 0x4afa6d
inc dword [ebp - 0x44]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004af154
lea ecx, [ebp - 0x128]
mov edx, dword [ebp - 0x34]
and edx, 1
mov eax, dword [ebp - 0x58]
and eax, 1
call fcn.0041c87c
mov eax, dword [ebp - 0x128]
mov dword [edi + 0x3b], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 0x3f], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x34], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add eax, dword [ebp - 0x108]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x44], 0
jg 0x4afad0
test byte [ebp + 0xc], 0x80
jne 0x4b030b
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [edi + 8]
movzx edx, word [edx + 8]
cmp eax, edx
je 0x4afb24
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [edi + 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 - 0x58]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0xf0], eax
push 0
mov eax, dword [edi + 0x3f]
push eax
mov eax, dword [edi + 0x3b]
push eax
mov eax, dword [edi]
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetBrushOrgEx
mov eax, dword [edi + 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.004986b8
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x14c]
test al, al
jne 0x4b027d
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
push 1
mov eax, dword [ebp - 0x100]
push eax
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x58]
call fcn.0041c8a4
lea eax, [ebp - 0x138]
push eax
mov edx, edi
mov cl, byte [ebp - 0x12]
mov eax, dword [ebp - 4]
call fcn.004992a8
push edi
lea esi, [ebp - 0xfc]
add edi, 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]
pop edi
cmp byte [ebp - 0x16], 0
je 0x4afbce
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049a124
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
jmp 0x4b0214
cmp byte [ebp - 0x16], 0
je 0x4afc1f
mov eax, dword [ebx + 0x30]
mov edx, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4afbfd
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00491ffc
mov al, byte [eax + 0x30]
mov byte [edi + 0x3a], al
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00491ffc
mov al, byte [eax + 0x44]
mov byte [edi + 0x38], al
jmp 0x4afc3b
mov dword [edi + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5f]
mov byte [edi + 0x3a], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x39e]
mov byte [edi + 0x38], al
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 8
je 0x4afc73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4afc73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4afc6f
cmp byte [ebp - 0x16], 0
jne 0x4afc73
and byte [edi + 4], 0xf7
cmp byte [ebp - 0x16], 0
je 0x4afca7
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4afc97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xf], 4
je 0x4afc97
test byte [edi + 4], 8
jne 0x4afca7
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00491ffc
test byte [eax + 0x3c], 0x10
je 0x4afcab
and byte [edi + 4], 0xfd
mov eax, dword [ebx + 0x18]
call fcn.004947a0
cmp eax, dword [edi + 0xc]
sete byte [ebp - 0x17]
cmp byte [edi + 0x3a], 0
je 0x4afcc8
lea eax, [edi + 0x38]
call fcn.004486d0
cmp byte [ebp - 0x16], 0
je 0x4afce2
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00491ffc
test byte [eax + 0x3c], 0x80
je 0x4b019f
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x17]
je 0x4b019f
lea ecx, [ebp - 0x30]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xd4]
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp - 0x58]
jle 0x4b0193
mov eax, dword [edi]
push eax
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x1e4]
mov dword [edi + 0x34], eax
push edi
lea esi, [edi + 0x14]
add edi, 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 edi
cmp byte [edi + 0x3a], 0
je 0x4afd47
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
sub dword [edi + 0x2c], eax
jmp 0x4afd53
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
add dword [edi + 0x24], eax
mov al, byte [ebp - 0x15]
and al, byte [ebp - 0x17]
je 0x4afd9e
push 0
push 0
xor ecx, ecx
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2b8]
mov dword [edi + 0x6c], eax
cmp dword [edi + 0x6c], 0xffffffff
jle 0x4afda5
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x370]
mov cl, byte [edi + 0x3a]
mov eax, dword [ebp - 4]
call fcn.00498594
mov byte [edi + 0x78], 0
jmp 0x4afda5
mov dword [edi + 0x6c], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4afdee
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
push eax
mov edx, edi
mov cl, 2
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2cc]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4afdf5
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x58]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x364]
mov cl, byte [edi + 0x3a]
mov eax, dword [ebp - 4]
call fcn.00498594
jmp 0x4afdf5
mov dword [edi + 0x58], 0xffffffff
cmp byte [ebp - 0x13], 0
je 0x4afe4f
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
push eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
setne al
and eax, 0x7f
mov cl, byte [eax + 0x5bb38c]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2cc]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4afe56
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x44]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x360]
mov cl, byte [edi + 0x3a]
mov eax, dword [ebp - 4]
call fcn.00498594
jmp 0x4afe56
mov dword [edi + 0x44], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x4afe85
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.00432f50
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00498568
cmp byte [ebp - 0x16], 0
je 0x4afe9a
push 0
lea ecx, [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.0049a370
test byte [edi + 4], 0x20
je 0x4aff9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x80
je 0x4aff9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.00497fa8
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.0042adc4
cmp byte [ebp - 0x17], 0
je 0x4aff7f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x393], 1
jne 0x4aff7f
cmp byte [edi + 0x3a], 0
jne 0x4aff3b
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov eax, dword [edi + 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.00432f50
mov ecx, eax
mov eax, dword [ebp - 4]
imul ecx, dword [eax + 0x220]
add ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2a0]
jmp 0x4aff98
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.00432f50
mov edx, dword [ebp - 4]
imul dword [edx + 0x220]
mov edx, dword [edi + 0x1c]
sub edx, eax
dec edx
push edx
mov eax, dword [edi + 0x20]
dec eax
push eax
mov edx, edi
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2a0]
jmp 0x4aff98
mov eax, dword [edi + 0x1c]
push eax
mov eax, dword [edi + 0x20]
dec eax
push eax
mov edx, edi
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2a0]
dec dword [edi + 0x20]
dec dword [edi + 0x30]
cmp byte [ebp - 0x16], 0
je 0x4b002c
test byte [edi + 4], 0x20
je 0x4b002c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4b002c
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4affd3
mov eax, ebx
call fcn.00491ff4
dec eax
cmp eax, dword [edi + 0x10]
jbe 0x4b002c
cmp byte [edi + 0x3a], 0
je 0x4affee
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + pe_nt_image_headers32]
test al, al
jne 0x4b0026
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.00497fa8
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.0042adc4
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov edx, edi
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2a4]
dec dword [edi + 0x1c]
dec dword [edi + 0x2c]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x340]
cmp byte [ebp - 0x17], 0
je 0x4b0112
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 2
je 0x4b00ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 0x20
je 0x4b0079
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x80
jne 0x4b00ab
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.00432f50
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x334]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x20
je 0x4b00ff
mov eax, dword [edi + 8]
test byte [eax + 0xa], 0x40
je 0x4b00ff
mov eax, dword [edi + 8]
test byte [eax + 0xb], 4
je 0x4b00db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xd], 0x80
jne 0x4b00ff
mov eax, dword [edi + 0xc]
push eax
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov al, byte [edi + 0x3a]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x330]
cmp dword [edi + 0x6c], 0xffffffff
jle 0x4b0112
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x328]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4b0129
push 0
mov edx, edi
mov cl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x32c]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4b0140
push 1
mov edx, edi
xor ecx, ecx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x32c]
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 8
je 0x4b016e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4b016e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4b017b
cmp byte [ebp - 0x16], 0
je 0x4b017b
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x254]
mov eax, dword [edi + 0xc]
push eax
lea eax, [edi + 0x14]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x12c]
cmp byte [ebp - 0x16], 0
je 0x4b022c
jmp 0x4b01ae
xor ecx, ecx
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.0049367c
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [edi]
call fcn.0042bf24
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x50]
jge 0x4b022c
cmp dword [ebp - 0x30], 0xfffffffe
je 0x4b022c
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00491ffc
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00491ffc
test byte [eax + 0x3c], 0x80
je 0x4b0214
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00491ffc
lea ecx, [edi + 0x1c]
lea edx, [edi + 0x14]
call fcn.004916ec
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [edi + 0x30], eax
cmp dword [edi + 0xc], 0xfffffffe
jg 0x4b0220
cmp byte [ebp - 0x16], 0
jne 0x4b022c
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x50]
jl 0x4afbdf
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ac]
cmp eax, dword [edi + 8]
jne 0x4b027d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x40
je 0x4b027d
test byte [edi + 4], 0x10
je 0x4b027d
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x250]
cmp byte [ebp - 0x11], 0
je 0x4b02c4
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x138]
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.0041c8a4
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x338]
push 0xcc0020
push 0
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
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 - 0x108]
push eax
mov eax, dword [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
call fcn.0042bf24
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x40]
jge 0x4b035b
cmp byte [ebp - 0x11], 0
je 0x4b0341
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
neg eax
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_OffsetRect
mov cl, 1
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004adfa4
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
jne 0x4af9cd
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x40]
jge 0x4b0881
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xfc]
push eax
mov ebx, dword [ebp - 0x10c]
mov ecx, ebx
xor edx, edx
mov eax, ebx
call fcn.0041c8a4
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.0041c8a4
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.00431d8c
mov edx, dword [ebp - 0x104]
sub edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x100]
sub edx, dword [ebp - 0x108]
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.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov edx, eax
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24c]
test al, al
jne 0x4b07a6
cmp byte [ebp - 0x12], 0
je 0x4b04ce
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 2
je 0x4b049c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.0042dee0
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.0049bec0
jmp 0x4b07a6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.0042dee0
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.0049c078
jmp 0x4b07a6
cmp byte [ebp - 0x16], 0
je 0x4b0764
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4b054f
xor edx, edx
mov eax, ebx
call fcn.00493580
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4b0547
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
call fcn.004908b8
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0x10c]
jg 0x4b057d
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.0049367c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4b04f6
jmp 0x4b057d
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
call fcn.004908b8
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.00497fa8
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042adc4
jmp 0x4b06a6
test byte [ebp + 0xc], 0x20
je 0x4b0609
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4b0609
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4b0609
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4b05e1
mov eax, ebx
call fcn.00491ff4
dec eax
cmp eax, dword [ebp - 0x48]
jbe 0x4b0609
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0xf4]
dec eax
push eax
mov edx, edi
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2a4]
dec dword [ebp - 0xf4]
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
test byte [eax + 0x3c], 0x10
jne 0x4b063a
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov eax, dword [eax + 0x14]
pop edx
call fcn.0042b590
jmp 0x4b0650
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042b590
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
lea edx, [ebp - 0xfc]
call fcn.0042b968
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.0049367c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4b06a6
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
call fcn.004908b8
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00491ffc
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4b06c1
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xfc]
jg 0x4b05a7
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf4]
jle 0x4b0749
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xf4], eax
test byte [ebp + 0xc], 0x20
je 0x4b0720
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4b0720
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4b0720
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
jne 0x4b0720
inc dword [ebp - 0xfc]
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042b590
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
lea edx, [ebp - 0xfc]
call fcn.0042b968
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x4b07a6
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042b590
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
lea edx, [ebp - 0x10c]
call fcn.0042b968
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x11], 0
je 0x4b0842
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
add eax, 0x281
call fcn.0048acd0
mov eax, dword [ebp - 0xc]
neg eax
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3e8]
push eax
mov eax, dword [ebp - 0x10]
neg eax
add eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0xfc]
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.00430d1c
call fcn.0042bf24
push eax
call sub.gdi32.dll_SetBrushOrgEx
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x338]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bf24
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.0042bf24
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b08ab
mov eax, dword [ebp - 0x38]
call fcn.00430d1c
call fcn.0042bdf8
mov eax, dword [ebp - 0x38]
call fcn.00403da8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0906
lea eax, [ebp - 0x2c]
mov edx, dword [0x4831b8]
call fcn.004064c0
ret