Function at 0x4f14a4
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 0x4f270f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x237], 0x80
jne 0x4f26f3
mov ecx, 0x4f2720
mov edx, 0x4f2728
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x274]
xor eax, eax
push ebp
push 0x4f26ec
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 [0x429cc8]
call fcn.0042ffb4
mov dword [ebp - 0x38], eax
cmp byte [0x5acad0], 0
je 0x4f156c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39d], 1
je 0x4f1560
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x80
jne 0x4f1560
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 1
je 0x4f156c
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.004315f4
jmp 0x4f1577
mov dl, byte [ebp + 8]
mov eax, dword [ebp - 0x38]
call fcn.004315f4
mov eax, edi
mov edx, 0x94
call fcn.00408328
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042b8ec
xor eax, eax
push ebp
push 0x4f26b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 4]
add eax, 0x281
call fcn.004cc9b8
mov eax, dword [ebp - 4]
call fcn.004f0cb8
test al, al
je 0x4f15d7
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4f15db
xor eax, eax
jmp 0x4f15dd
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.0044ce4c
cdq
push edx
push eax
call fcn.0043284c
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c8fc
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.0042bdf8
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x10
je 0x4f1671
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov eax, dword [eax + 0xc]
mov edx, dword [0x429cc8]
call fcn.00403f20
test al, al
je 0x4f1671
test byte [ebp + 0xc], 1
jne 0x4f1675
xor eax, eax
jmp 0x4f1677
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 0x4f16b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0x11], 2
jne 0x4f16b5
xor eax, eax
jmp 0x4f16b7
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.004d64a4
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x80
jne 0x4f16f9
mov eax, dword [ebp - 4]
mov si, 0xffb5
call fcn.00403f90
test al, al
jne 0x4f16fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 2
je 0x4f16fd
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 1
je 0x4f1710
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.004f00ec
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
jne 0x4f1737
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x11], 0
je 0x4f1751
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.0041c8fc
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x48], 0xfffffffe
cmp dword [edi + 8], 0
je 0x4f216b
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 [0x4f2730]
call fcn.004033c8
mov dword [ebp - 0x24], eax
jmp 0x4f2161
lea ecx, [ebp - 0x2c]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004db2d4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
call fcn.00406190
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 8
jne 0x4f184b
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 [0x4f2730]
call fcn.004033c8
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 0x4f1862
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 0x4f187d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 4
jne 0x4f187d
inc dword [ebp - 0x44]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004f0f64
lea ecx, [ebp - 0x128]
mov edx, dword [ebp - 0x34]
and edx, 1
mov eax, dword [ebp - 0x58]
and eax, 1
call fcn.0041c8d4
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 0x4f18e0
test byte [ebp + 0xc], 0x80
jne 0x4f211b
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 0x4f1934
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.00430584
call fcn.0042bdf8
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.0042bdf8
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.004da3a0
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 0x4f208d
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.0041c8fc
lea eax, [ebp - 0x138]
push eax
mov edx, edi
mov cl, byte [ebp - 0x12]
mov eax, dword [ebp - 4]
call fcn.004daf90
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 0x4f19de
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004dbe60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
jmp 0x4f2024
cmp byte [ebp - 0x16], 0
je 0x4f1a2f
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 0x4f1a0d
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d3ce4
mov al, byte [eax + 0x30]
mov byte [edi + 0x3a], al
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d3ce4
mov al, byte [eax + 0x44]
mov byte [edi + 0x38], al
jmp 0x4f1a4b
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 0x4f1a83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4f1a83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4f1a7f
cmp byte [ebp - 0x16], 0
jne 0x4f1a83
and byte [edi + 4], 0xf7
cmp byte [ebp - 0x16], 0
je 0x4f1ab7
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4f1aa7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xf], 4
je 0x4f1aa7
test byte [edi + 4], 8
jne 0x4f1ab7
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d3ce4
test byte [eax + 0x3c], 0x10
je 0x4f1abb
and byte [edi + 4], 0xfd
mov eax, dword [ebx + 0x18]
call fcn.004d6488
cmp eax, dword [edi + 0xc]
sete byte [ebp - 0x17]
cmp byte [edi + 0x3a], 0
je 0x4f1ad8
lea eax, [edi + 0x38]
call fcn.0044a228
cmp byte [ebp - 0x16], 0
je 0x4f1af2
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d3ce4
test byte [eax + 0x3c], 0x80
je 0x4f1faf
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x17]
je 0x4f1faf
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 0x4f1fa3
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 0x4f1b57
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
sub dword [edi + 0x2c], eax
jmp 0x4f1b63
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 0x4f1bae
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 0x4f1bb5
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.004da27c
mov byte [edi + 0x78], 0
jmp 0x4f1bb5
mov dword [edi + 0x6c], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4f1bfe
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 0x4f1c05
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.004da27c
jmp 0x4f1c05
mov dword [edi + 0x58], 0xffffffff
cmp byte [ebp - 0x13], 0
je 0x4f1c5f
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 + 0x5a53dc]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2cc]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4f1c66
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.004da27c
jmp 0x4f1c66
mov dword [edi + 0x44], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x4f1c95
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.004328d4
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004da250
cmp byte [ebp - 0x16], 0
je 0x4f1caa
push 0
lea ecx, [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004dc0ac
test byte [edi + 4], 0x20
je 0x4f1dae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x80
je 0x4f1dae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.004d9c90
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.0042ac98
cmp byte [ebp - 0x17], 0
je 0x4f1d8f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x393], 1
jne 0x4f1d8f
cmp byte [edi + 0x3a], 0
jne 0x4f1d4b
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.004328d4
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 0x4f1da8
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.004328d4
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 0x4f1da8
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 0x4f1e3c
test byte [edi + 4], 0x20
je 0x4f1e3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4f1e3c
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4f1de3
mov eax, ebx
call fcn.004d3cdc
dec eax
cmp eax, dword [edi + 0x10]
jbe 0x4f1e3c
cmp byte [edi + 0x3a], 0
je 0x4f1dfe
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 0x4f1e36
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov edx, 4
call fcn.004d9c90
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.0042ac98
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 0x4f1f22
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 2
je 0x4f1ebb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 0x20
je 0x4f1e89
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x80
jne 0x4f1ebb
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.004328d4
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 0x4f1f0f
mov eax, dword [edi + 8]
test byte [eax + 0xa], 0x40
je 0x4f1f0f
mov eax, dword [edi + 8]
test byte [eax + 0xb], 4
je 0x4f1eeb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xd], 0x80
jne 0x4f1f0f
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 0x4f1f22
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x328]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4f1f39
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 0x4f1f50
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 0x4f1f7e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4f1f7e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4f1f8b
cmp byte [ebp - 0x16], 0
je 0x4f1f8b
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 0x4f203c
jmp 0x4f1fbe
xor ecx, ecx
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d5364
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [edi]
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x50]
jge 0x4f203c
cmp dword [ebp - 0x30], 0xfffffffe
je 0x4f203c
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004d3ce4
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004d3ce4
test byte [eax + 0x3c], 0x80
je 0x4f2024
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004d3ce4
lea ecx, [edi + 0x1c]
lea edx, [edi + 0x14]
call fcn.004d33d4
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 0x4f2030
cmp byte [ebp - 0x16], 0
jne 0x4f203c
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x50]
jl 0x4f19ef
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 0x4f208d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x40
je 0x4f208d
test byte [edi + 4], 0x10
je 0x4f208d
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 0x4f20d4
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.0041c8fc
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.00430584
call fcn.0042bdf8
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.0042bdf8
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 0x4f216b
cmp byte [ebp - 0x11], 0
je 0x4f2151
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.004efdb4
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
jne 0x4f17dd
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x40]
jge 0x4f2691
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.0041c8fc
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.0041c8fc
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.004315f4
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.00430584
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov edx, eax
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24c]
test al, al
jne 0x4f25b6
cmp byte [ebp - 0x12], 0
je 0x4f22de
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 2
je 0x4f22ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430584
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.0042dd78
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004ddc20
jmp 0x4f25b6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430584
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.0042dd78
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004dddd8
jmp 0x4f25b6
cmp byte [ebp - 0x16], 0
je 0x4f2574
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4f235f
xor edx, edx
mov eax, ebx
call fcn.004d5268
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4f2357
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
call fcn.004d25a0
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
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 0x4f238d
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d5364
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4f2306
jmp 0x4f238d
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
call fcn.004d25a0
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
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.004d9c90
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042ac98
jmp 0x4f24b6
test byte [ebp + 0xc], 0x20
je 0x4f2419
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4f2419
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4f2419
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4f23f1
mov eax, ebx
call fcn.004d3cdc
dec eax
cmp eax, dword [ebp - 0x48]
jbe 0x4f2419
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.004d3ce4
test byte [eax + 0x3c], 0x10
jne 0x4f244a
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov eax, dword [eax + 0x14]
pop edx
call fcn.0042b464
jmp 0x4f2460
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042b464
mov eax, dword [ebp - 0x38]
call fcn.00430584
lea edx, [ebp - 0xfc]
call fcn.0042b83c
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d5364
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4f24b6
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
call fcn.004d25a0
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d3ce4
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4f24d1
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xfc]
jg 0x4f23b7
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf4]
jle 0x4f2559
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 0x4f2530
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4f2530
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4f2530
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
jne 0x4f2530
inc dword [ebp - 0xfc]
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042b464
mov eax, dword [ebp - 0x38]
call fcn.00430584
lea edx, [ebp - 0xfc]
call fcn.0042b83c
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x4f25b6
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.00430584
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0042b464
mov eax, dword [ebp - 0x38]
call fcn.00430584
lea edx, [ebp - 0x10c]
call fcn.0042b83c
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042bdf8
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x11], 0
je 0x4f2652
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
add eax, 0x281
call fcn.004cc9b8
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.00430584
call fcn.0042bdf8
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.00430584
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.00430584
call fcn.0042bdf8
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.0042bdf8
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f26bb
mov eax, dword [ebp - 0x38]
call fcn.00430584
call fcn.0042bccc
mov eax, dword [ebp - 0x38]
call fcn.00403d88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2716
lea eax, [ebp - 0x2c]
mov edx, dword [0x4c4ea0]
call fcn.00406478
ret