Function at 0x4e9814
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 0x4eaa7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x237], 0x20
jne 0x4eaa60
mov ecx, 0x4eaa8c
mov edx, 0x4eaa94
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x268]
xor edx, edx
push ebp
push 0x4eaa59
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 + 0x154]
mov dl, 1
mov eax, dword [0x434bc4]
call fcn.0043b424
mov dword [ebp - 0x38], eax
cmp byte [0x5154a0], 0
je 0x4e98dc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x37d], 1
je 0x4e98d0
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 0x10
jne 0x4e98d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 1
je 0x4e98dc
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.0043ca5c
jmp 0x4e98e7
mov dl, byte [ebp + 8]
mov eax, dword [ebp - 0x38]
call fcn.0043ca5c
mov eax, edi
xor ecx, ecx
mov edx, 0x94
call fcn.004030e0
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.0043680c
xor edx, edx
push ebp
push 0x4eaa21
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 4]
add eax, 0x26c
call fcn.004ca554
mov eax, dword [ebp - 4]
call fcn.004e905c
test al, al
je 0x4e9949
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4e994d
xor eax, eax
jmp 0x4e994f
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 + 0x3d0]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0047bf94
cdq
push edx
push eax
call fcn.0042aba8
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041a2b8
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.00436c54
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x10
je 0x4e99e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
mov eax, dword [eax + 0xc]
mov edx, dword [0x434bc4]
call fcn.00403a78
test al, al
je 0x4e99e3
test byte [ebp + 0xc], 1
jne 0x4e99e7
xor eax, eax
jmp 0x4e99e9
mov al, 1
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x33c], 0
setne byte [ebp - 0x13]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x340], 0
setne byte [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34c], 0
je 0x4e9a23
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0x11], 2
jne 0x4e9a27
xor eax, eax
jmp 0x4e9a29
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.004d2e68
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x80
jne 0x4e9a6b
mov eax, dword [ebp - 4]
mov si, 0xffb5
call fcn.00403ae8
test al, al
jne 0x4e9a6f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 2
je 0x4e9a6f
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 1
je 0x4e9a82
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.004e8930
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
jne 0x4e9aa9
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x11], 0
je 0x4e9ac3
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.0041a2b8
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x48], 0xfffffffe
cmp dword [edi + 8], 0
je 0x4ea4da
lea ecx, [ebp - 0x2c]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004d6e2c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
call fcn.00405bf8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
call fcn.00405bf8
mov ebx, eax
mov eax, dword [ebp - 4]
imul ebx, dword [eax + 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
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 [0x4eaa9c]
call fcn.00402b9c
add ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x220]
mov dword [ebp - 0x24], ebx
jmp 0x4ea4cf
test byte [eax + 0xa], 1
jne 0x4e9b9d
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2f0]
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4e9ba9
inc dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004e9304
lea ecx, [ebp - 0x128]
mov edx, dword [ebp - 0x34]
and edx, 1
mov eax, dword [ebp - 0x58]
and eax, 1
call fcn.0041a290
mov eax, dword [ebp - 0x128]
mov dword [edi + 0x3a], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 0x3e], eax
mov eax, dword [edi + 8]
movzx edx, word [eax + 8]
add dword [ebp - 0x34], edx
movzx eax, word [eax + 8]
add eax, dword [ebp - 0x108]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x44], 0
jg 0x4e9c08
test byte [ebp + 0xc], 0x80
jne 0x4ea3a1
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 0x4e9c5c
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.0043b9ec
call fcn.00436c54
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 + 0x3e]
push eax
mov eax, dword [edi + 0x3a]
push eax
mov eax, dword [edi]
call fcn.00436c54
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.004d5730
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 + 0x150]
test al, al
jne 0x4ea313
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.0041a2b8
lea eax, [ebp - 0x138]
push eax
mov edx, edi
mov cl, byte [ebp - 0x12]
mov eax, dword [ebp - 4]
call fcn.004d6320
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 0x4e9d06
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004d6dd4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
jmp 0x4ea2aa
cmp byte [ebp - 0x16], 0
je 0x4e9d53
mov eax, dword [ebx + 0x30]
mov edx, dword [edi + 0x10]
mov esi, dword [eax + edx*4]
mov dword [edi + 0xc], esi
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4e9d32
mov dword [ebp - 0x48], esi
mov edx, esi
mov eax, ebx
call fcn.004d0c2c
mov al, byte [eax + 0x30]
mov byte [edi + 0x39], al
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d0c2c
mov al, byte [eax + 0x44]
mov byte [edi + 0x38], al
jmp 0x4e9d6f
mov dword [edi + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5f]
mov byte [edi + 0x39], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x37e]
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 0x4e9da7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4e9da7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4e9da3
cmp byte [ebp - 0x16], 0
jne 0x4e9da7
and byte [edi + 4], 0xf7
cmp byte [ebp - 0x16], 0
je 0x4e9ddb
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4e9dcb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xf], 4
je 0x4e9dcb
test byte [edi + 4], 8
jne 0x4e9ddb
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d0c2c
test byte [eax + 0x3c], 0x10
je 0x4e9ddf
and byte [edi + 4], 0xfd
mov eax, dword [ebx + 0x18]
call fcn.004d2e4c
cmp eax, dword [edi + 0xc]
sete byte [ebp - 0x17]
cmp byte [edi + 0x39], 0
je 0x4e9dfc
lea eax, [edi + 0x38]
call fcn.0047931c
cmp byte [ebp - 0x16], 0
je 0x4e9e16
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d0c2c
test byte [eax + 0x3c], 0x80
je 0x4ea237
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x17]
je 0x4ea237
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 0x4ea22b
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 + 0x1e0]
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 + 0x39], 0
je 0x4e9e7b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
sub dword [edi + 0x2c], eax
jmp 0x4e9e87
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
add dword [edi + 0x24], eax
mov al, byte [ebp - 0x15]
and al, byte [ebp - 0x17]
je 0x4e9ecc
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2a8]
mov dword [edi + 0x6c], eax
cmp dword [edi + 0x6c], 0xffffffff
jle 0x4e9ed3
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 + 0x34c]
mov cl, byte [edi + 0x39]
mov eax, dword [ebp - 4]
call fcn.004d5638
mov byte [edi + 0x78], 0
jmp 0x4e9ed3
mov dword [edi + 0x6c], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4e9f1c
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
push eax
mov edx, edi
mov cl, 2
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2bc]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4e9f23
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 + 0x340]
mov cl, byte [edi + 0x39]
mov eax, dword [ebp - 4]
call fcn.004d5638
jmp 0x4e9f23
mov dword [edi + 0x58], 0xffffffff
cmp byte [ebp - 0x13], 0
je 0x4e9f7d
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
push eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
setne al
and eax, 0x7f
mov cl, byte [eax + 0x513134]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2bc]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4e9f84
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 + 0x33c]
mov cl, byte [edi + 0x39]
mov eax, dword [ebp - 4]
call fcn.004d5638
jmp 0x4e9f84
mov dword [edi + 0x44], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x4e9f97
mov edx, edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004d560c
cmp byte [ebp - 0x16], 0
je 0x4e9fac
push 0
lea ecx, [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004d715c
test byte [edi + 4], 0x20
je 0x4ea072
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x80
je 0x4ea072
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov edx, 4
call fcn.004d5084
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.00435b70
cmp byte [ebp - 0x17], 0
je 0x4ea053
mov eax, dword [ebp - 4]
cmp byte [eax + 0x373], 1
jne 0x4ea053
cmp byte [edi + 0x39], 0
jne 0x4ea029
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov eax, dword [edi + 0x20]
dec eax
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x220]
imul ecx, dword [ebp - 0x20]
add ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x290]
jmp 0x4ea06c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
imul dword [ebp - 0x20]
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 + 0x290]
jmp 0x4ea06c
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 + 0x290]
dec dword [edi + 0x20]
dec dword [edi + 0x30]
cmp byte [ebp - 0x16], 0
je 0x4ea100
test byte [edi + 4], 0x20
je 0x4ea100
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4ea100
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4ea0a7
mov eax, ebx
call fcn.0041c6a4
dec eax
cmp eax, dword [edi + 0x10]
jbe 0x4ea100
cmp byte [edi + 0x39], 0
je 0x4ea0c2
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x104]
test al, al
jne 0x4ea0fa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov edx, 4
call fcn.004d5084
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.00435b70
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 + 0x294]
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]
call fcn.004d7874
cmp byte [ebp - 0x17], 0
je 0x4ea1aa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 2
je 0x4ea147
mov eax, dword [ebp - 0x20]
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 + 0x324]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x20
je 0x4ea197
mov eax, dword [edi + 8]
test byte [eax + 0xa], 0x40
je 0x4ea197
mov eax, dword [edi + 8]
test byte [eax + 0xb], 4
je 0x4ea177
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xd], 0x80
jne 0x4ea197
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov al, byte [edi + 0x39]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x320]
cmp dword [edi + 0x6c], 0xffffffff
jle 0x4ea1aa
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x318]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4ea1c1
push 0
mov edx, edi
mov cl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x31c]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4ea1d8
push 1
mov edx, edi
xor ecx, ecx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x31c]
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 8
je 0x4ea206
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4ea206
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4ea213
cmp byte [ebp - 0x16], 0
je 0x4ea213
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x248]
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 + 0x130]
cmp byte [ebp - 0x16], 0
je 0x4ea2c2
jmp 0x4ea244
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004d203c
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [edi]
call fcn.00436c54
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x50]
jge 0x4ea2c2
cmp dword [ebp - 0x30], 0xfffffffe
je 0x4ea2c2
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004d0c2c
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004d0c2c
test byte [eax + 0x3c], 0x80
je 0x4ea2aa
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004d0c2c
lea ecx, [edi + 0x1c]
lea edx, [edi + 0x14]
call fcn.004d03b4
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 0x4ea2b6
cmp byte [ebp - 0x16], 0
jne 0x4ea2c2
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x50]
jl 0x4e9d17
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 + 0x138]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
cmp eax, dword [edi + 8]
jne 0x4ea313
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x40
je 0x4ea313
test byte [edi + 4], 0x10
je 0x4ea313
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 + 0x244]
cmp byte [ebp - 0x11], 0
je 0x4ea35a
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.0041a2b8
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 + 0x328]
push 0xcc0020
push 0
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
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.00436c54
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [edi + 8]
mov ax, word [eax + 8]
movzx edx, ax
add dword [ebp - 0x108], edx
mov edx, dword [ebp - 0x108]
cmp edx, dword [ebp - 0x40]
jge 0x4ea4da
cmp byte [ebp - 0x11], 0
je 0x4ea3da
movzx eax, ax
neg eax
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_OffsetRect
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004e87f4
mov ebx, eax
test ebx, ebx
je 0x4ea4cc
mov eax, dword [ebx + 0x18]
cmp eax, dword [edi + 8]
jne 0x4ea45f
cmp dword [ebp - 0x20], 0
jle 0x4ea424
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004d6da8
test al, al
je 0x4ea419
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 2
jmp 0x4ea424
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 0
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
call fcn.00405bf8
cmp eax, dword [ebp - 0x20]
jg 0x4ea451
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x4c3cec]
call fcn.00405db4
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
add dword [ebp - 0x24], eax
jmp 0x4ea4a0
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4ea46b
dec dword [ebp - 0x44]
mov eax, dword [ebx + 0x18]
mov edx, dword [edi + 8]
cmp eax, dword [edx + 0x18]
je 0x4ea4a0
jmp 0x4ea495
dec dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x220]
sub dword [ebp - 0x24], edx
mov esi, eax
mov dword [edi + 8], esi
test byte [esi + 0xb], 1
je 0x4ea495
dec dword [ebp - 0x44]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebx + 0x18]
jne 0x4ea478
cmp dword [ebp - 0x20], 0
jle 0x4ea4cc
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d6da8
test al, al
je 0x4ea4c1
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 3
jmp 0x4ea4cc
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 5
mov dword [edi + 8], ebx
mov eax, dword [edi + 8]
test eax, eax
jne 0x4e9b8a
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x40]
jge 0x4ea9fe
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 ecx, dword [ebp - 0x10c]
xor edx, edx
mov eax, dword [ebp - 0x10c]
call fcn.0041a2b8
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.0041a2b8
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.0043ca5c
mov edx, dword [ebp - 0x104]
sub edx, dword [ebp - 0x10c]
inc edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x100]
sub edx, dword [ebp - 0x108]
inc edx
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.0043b9ec
call fcn.00436c54
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov edx, eax
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x240]
test al, al
jne 0x4ea923
cmp byte [ebp - 0x12], 0
je 0x4ea651
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 2
je 0x4ea61f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.00438bdc
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004d8d74
jmp 0x4ea923
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.00438bdc
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004d8f2c
jmp 0x4ea923
cmp byte [ebp - 0x16], 0
je 0x4ea8e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4ea6ce
mov eax, ebx
call fcn.004d1f7c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4ea6c6
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
call fcn.004cf954
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
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 0x4ea6fc
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d203c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x4ea677
jmp 0x4ea6fc
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
call fcn.004cf954
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov edx, 4
call fcn.004d5084
push eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov eax, dword [eax + 0xc]
pop edx
call fcn.00435b70
jmp 0x4ea823
test byte [ebp + 0xc], 0x20
je 0x4ea788
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4ea788
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4ea788
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4ea760
mov eax, ebx
call fcn.0041c6a4
dec eax
cmp eax, dword [ebp - 0x48]
jbe 0x4ea788
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 + 0x294]
dec dword [ebp - 0xf4]
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
test byte [eax + 0x3c], 0x10
jne 0x4ea7b9
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov eax, dword [eax + 0x14]
pop edx
call fcn.0043633c
jmp 0x4ea7cf
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0043633c
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
lea edx, [ebp - 0xfc]
call fcn.0043675c
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d203c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4ea823
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
call fcn.004cf954
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.004d0c2c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x4ea83e
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xfc]
jg 0x4ea726
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf4]
jle 0x4ea8c6
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 0x4ea89d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4ea89d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4ea89d
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
jne 0x4ea89d
inc dword [ebp - 0xfc]
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0043633c
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
lea edx, [ebp - 0xfc]
call fcn.0043675c
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x4ea923
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.0043633c
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
lea edx, [ebp - 0x10c]
call fcn.0043675c
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x11], 0
je 0x4ea9bf
lea edx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
add eax, 0x26c
call fcn.004ca554
mov eax, dword [ebp - 0xc]
neg eax
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3c8]
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.0043b9ec
call fcn.00436c54
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.0043b9ec
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x328]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436c54
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.00436c54
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eaa28
mov eax, dword [ebp - 0x38]
call fcn.0043b9ec
call fcn.00436b4c
mov eax, dword [ebp - 0x38]
call fcn.004038ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eaa83
lea eax, [ebp - 0x2c]
mov edx, dword [0x4c3cec]
call fcn.00405eb4
ret