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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
lea edi, [ebp - 0x78]
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 - 0xc], edx
mov dword [ebp - 8], eax
lea edi, [ebp - 0x10c]
xor eax, eax
push ebp
push 0x52f0f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
test byte [eax + 0x27f], 0x20
jne 0x52f0d7
mov ecx, 0x52f104
mov edx, 0x52f10c
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x27c]
xor eax, eax
push ebp
push 0x52f0d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x160]
mov dl, 1
mov eax, dword [0x428690]
call fcn.0042efd8
mov dword [ebp - 0x40], eax
cmp byte [0x609fe8], 0
je 0x52dcbc
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3c5], 1
je 0x52dcb0
mov eax, dword [ebp - 8]
test byte [eax + 0x281], 0x10
jne 0x52dcb0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 1
je 0x52dcbc
mov dl, 7
mov eax, dword [ebp - 0x40]
call fcn.004306f0
jmp 0x52dcc8
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 0x40]
call fcn.004306f0
mov eax, edi
xor ecx, ecx
mov edx, 0x94
call fcn.004034c0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov dword [edi], eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042a7a0
xor eax, eax
push ebp
push 0x52f098
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 8]
add eax, 0x2b4
call fcn.0050ccc8
mov eax, dword [ebp - 8]
call fcn.0052d430
test al, al
je 0x52dd2a
lea eax, [ebp - 0x13c]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x52dd2e
xor eax, eax
jmp 0x52dd30
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 8]
call fcn.0045611c
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x418]
xor edx, edx
cmp edx, dword [ebp - 0x5c]
jne 0x52dd59
cmp eax, dword [ebp - 0x60]
jbe 0x52dd6e
jmp 0x52dd5b
jle 0x52dd6e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x418]
xor edx, edx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
jmp 0x52dd7a
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
push 0
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x68]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00419fbc
mov edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xc]
call fcn.0042ac30
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 8], 0x10
je 0x52ddf1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0xc]
mov edx, dword [0x428690]
call fcn.00403e50
test al, al
je 0x52ddf1
test byte [ebp + 0xc], 1
jne 0x52ddf5
xor eax, eax
jmp 0x52ddf7
mov al, 1
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 8]
cmp dword [eax + 0x384], 0
setne byte [ebp - 0x17]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x388], 0
setne byte [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x394], 0
je 0x52de31
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0x11], 2
jne 0x52de35
xor eax, eax
jmp 0x52de37
mov al, 1
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x25c]
call fcn.005158dc
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 0x80
jne 0x52de79
mov eax, dword [ebp - 8]
mov si, 0xffb3
call fcn.00403ec0
test al, al
jne 0x52de7d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 8], 2
je 0x52de7d
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 8], 1
je 0x52de90
and byte [ebp + 0xc], 0xfb
xor eax, eax
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x74]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0052ca60
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
jne 0x52deb7
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x3c], eax
cmp byte [ebp - 0x15], 0
je 0x52ded1
mov eax, dword [ebp - 0x3c]
neg eax
push eax
push 0
lea eax, [ebp - 0x13c]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x74]
sub eax, esi
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
push 0
lea eax, [ebp - 0x12c]
push eax
sub esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
sub edx, esi
mov ecx, dword [ebp - 0x44]
mov eax, ebx
call fcn.00419fbc
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x50], 0xfffffffe
cmp dword [edi + 8], 0
je 0x52eb4b
lea ecx, [ebp - 4]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
call fcn.00519df4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
call fcn.00406364
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.004318ac
mov ebx, eax
mov eax, dword [ebp - 8]
imul ebx, dword [eax + 0x268]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x37c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x268]
sub edx, eax
mov dword [ebp - 0x140], edx
fild dword [ebp - 0x140]
fdiv dword [0x52f114]
call fcn.004032b8
add ebx, eax
mov eax, dword [ebp - 8]
sub ebx, dword [eax + 0x268]
mov dword [ebp - 0x2c], ebx
jmp 0x52eb41
mov eax, dword [edi + 8]
test byte [eax + 0xa], 1
jne 0x52dfc4
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x308]
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x52dfdf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 4
jne 0x52dfdf
inc dword [ebp - 0x4c]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
call fcn.0052d6d8
lea ecx, [ebp - 0x148]
mov edx, dword [ebp - 0x3c]
and edx, 1
mov eax, dword [ebp - 0x78]
and eax, 1
call fcn.00419f94
mov eax, dword [ebp - 0x148]
mov dword [edi + 0x3a], eax
mov eax, dword [ebp - 0x144]
mov dword [edi + 0x3e], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x3c], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x4c], 0
jg 0x52e042
test byte [ebp + 0xc], 0x80
jne 0x52e87d
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [edi + 8]
movzx edx, word [edx + 8]
cmp eax, edx
je 0x52e096
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [edi + 8]
movzx edx, word [eax + 8]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0x110], eax
push 0
mov eax, dword [edi + 0x3e]
push eax
mov eax, dword [edi + 0x3a]
push eax
mov eax, dword [edi]
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetBrushOrgEx
mov eax, dword [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
movzx ecx, byte [ebp - 0x18]
movzx edx, byte [ebp - 0x17]
mov eax, dword [ebp - 8]
call fcn.00518594
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x15c]
test al, al
jne 0x52e7ef
movzx eax, byte [ebp + 0xc]
mov byte [edi + 4], al
push 1
mov eax, dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x78]
call fcn.00419fbc
lea eax, [ebp - 0x158]
push eax
mov edx, edi
movzx ecx, byte [ebp - 0x16]
mov eax, dword [ebp - 8]
call fcn.005191ac
push edi
lea esi, [ebp - 0x11c]
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 - 0x1a], 0
je 0x52e144
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00519d9c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x25c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x54], eax
jmp 0x52e786
cmp byte [ebp - 0x1a], 0
je 0x52e19f
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x30]
mov edx, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x50], 0xfffffffe
jne 0x52e179
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x50], eax
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
movzx eax, byte [eax + 0x30]
mov byte [edi + 0x39], al
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
movzx eax, byte [eax + 0x44]
mov byte [edi + 0x38], al
jmp 0x52e1bd
mov dword [edi + 0xc], 0xffffffff
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x5f]
mov byte [edi + 0x39], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x3c6]
mov byte [edi + 0x38], al
movzx eax, byte [ebp + 0xc]
mov byte [edi + 4], al
mov eax, dword [ebp - 8]
test byte [eax + 0x27d], 8
je 0x52e1f6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x288]
cmp eax, dword [edi + 8]
jne 0x52e1f6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
cmp eax, dword [edi + 0xc]
je 0x52e1f2
cmp byte [ebp - 0x1a], 0
jne 0x52e1f6
and byte [edi + 4], 0xf7
cmp byte [ebp - 0x1a], 0
je 0x52e22b
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x52e21a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xf], 4
je 0x52e21a
test byte [edi + 4], 8
jne 0x52e22b
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
test byte [eax + 0x3c], 0x10
je 0x52e22f
and byte [edi + 4], 0xfd
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x18]
call fcn.005158c0
cmp eax, dword [edi + 0xc]
sete byte [ebp - 0x1b]
cmp byte [edi + 0x39], 0
je 0x52e24f
lea eax, [edi + 0x38]
call fcn.004530a8
cmp byte [ebp - 0x1a], 0
je 0x52e26a
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
test byte [eax + 0x3c], 0x80
je 0x52e70d
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x1b]
je 0x52e70d
lea ecx, [ebp - 0x38]
mov edx, edi
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xe4]
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp - 0x78]
jle 0x52e701
mov eax, dword [edi]
push eax
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x1f4]
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 0x52e2cf
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x334]
sub dword [edi + 0x2c], eax
jmp 0x52e2db
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x334]
add dword [edi + 0x24], eax
movzx eax, byte [ebp - 0x19]
and al, byte [ebp - 0x1b]
je 0x52e322
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c0]
mov dword [edi + 0x6c], eax
cmp dword [edi + 0x6c], 0xffffffff
jle 0x52e329
mov eax, dword [ebp - 0x20]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x6c]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x394]
movzx ecx, byte [edi + 0x39]
mov eax, dword [ebp - 8]
call fcn.0051849c
mov byte [edi + 0x78], 0
jmp 0x52e329
mov dword [edi + 0x6c], 0xffffffff
cmp byte [ebp - 0x18], 0
je 0x52e373
push 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x388]
push eax
mov edx, edi
mov cl, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x2d4]
cmp dword [edi + 0x58], 0xffffffff
jle 0x52e37a
mov eax, dword [ebp - 0x20]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x58]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x388]
movzx ecx, byte [edi + 0x39]
mov eax, dword [ebp - 8]
call fcn.0051849c
jmp 0x52e37a
mov dword [edi + 0x58], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x52e3d6
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x384]
push eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
setne al
and eax, 0x7f
movzx ecx, byte [eax + 0x5f0a98]
mov edx, edi
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x2d4]
cmp dword [edi + 0x44], 0xffffffff
jle 0x52e3dd
mov eax, dword [ebp - 0x20]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x44]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x384]
movzx ecx, byte [edi + 0x39]
mov eax, dword [ebp - 8]
call fcn.0051849c
jmp 0x52e3dd
mov dword [edi + 0x44], 0xffffffff
cmp byte [ebp - 0x1b], 0
je 0x52e40c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.004318ac
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00518470
cmp byte [ebp - 0x1a], 0
je 0x52e421
push 0
lea ecx, [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
call fcn.0051a1ec
test byte [edi + 4], 0x20
je 0x52e525
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 8], 0x80
je 0x52e525
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b4]
mov edx, 4
call fcn.00517ee0
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.00429714
cmp byte [ebp - 0x1b], 0
je 0x52e506
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3bb], 1
jne 0x52e506
cmp byte [edi + 0x39], 0
jne 0x52e4c2
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov eax, dword [edi + 0x20]
dec eax
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.004318ac
mov ecx, eax
mov eax, dword [ebp - 8]
imul ecx, dword [eax + 0x268]
add ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x2a8]
jmp 0x52e51f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.004318ac
mov edx, dword [ebp - 8]
imul dword [edx + 0x268]
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 - 8]
mov ebx, dword [eax]
call dword [ebx + 0x2a8]
jmp 0x52e51f
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 - 8]
mov ebx, dword [eax]
call dword [ebx + 0x2a8]
dec dword [edi + 0x20]
dec dword [edi + 0x30]
cmp byte [ebp - 0x1a], 0
je 0x52e5bb
test byte [edi + 4], 0x20
je 0x52e5bb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 4
je 0x52e5bb
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x18]
test byte [eax + 0x15], 1
je 0x52e562
mov eax, dword [ebp - 0x54]
call fcn.00513464
dec eax
cmp eax, dword [edi + 0x10]
jbe 0x52e5bb
cmp byte [edi + 0x39], 0
je 0x52e57d
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x110]
test al, al
jne 0x52e5b5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b4]
mov edx, 4
call fcn.00517ee0
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.00429714
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 - 8]
mov ebx, dword [eax]
call dword [ebx + 0x2ac]
dec dword [edi + 0x1c]
dec dword [edi + 0x2c]
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.0051a908
cmp byte [ebp - 0x1b], 0
je 0x52e680
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 2
je 0x52e61c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.004318ac
push eax
mov eax, dword [ebp - 4]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x33c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 8], 0x20
je 0x52e66d
mov eax, dword [edi + 8]
test byte [eax + 0xa], 0x40
je 0x52e66d
mov eax, dword [edi + 8]
test byte [eax + 0xb], 4
je 0x52e64c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xd], 0x80
jne 0x52e66d
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
movzx eax, byte [edi + 0x39]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x338]
cmp dword [edi + 0x6c], 0xffffffff
jle 0x52e680
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x330]
cmp dword [edi + 0x58], 0xffffffff
jle 0x52e697
push 0
mov edx, edi
mov cl, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x334]
cmp dword [edi + 0x44], 0xffffffff
jle 0x52e6ae
push 1
mov edx, edi
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x334]
mov eax, dword [ebp - 8]
test byte [eax + 0x27d], 8
je 0x52e6dc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x288]
cmp eax, dword [edi + 8]
jne 0x52e6dc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
cmp eax, dword [edi + 0xc]
je 0x52e6e9
cmp byte [ebp - 0x1a], 0
je 0x52e6e9
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x25c]
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 - 8]
mov ebx, dword [eax]
call dword [ebx + 0x13c]
cmp byte [ebp - 0x1a], 0
je 0x52e79e
jmp 0x52e71d
xor ecx, ecx
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.00514a4c
mov dword [ebp - 0x38], eax
push 0
mov eax, dword [edi]
call fcn.0042ac30
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x70]
jge 0x52e79e
cmp dword [ebp - 0x38], 0xfffffffe
je 0x52e79e
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
test byte [eax + 0x3c], 0x80
je 0x52e786
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
call fcn.0051346c
lea ecx, [edi + 0x1c]
lea edx, [edi + 0x14]
call fcn.00512bc4
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 0x52e792
cmp byte [ebp - 0x1a], 0
jne 0x52e79e
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x70]
jl 0x52e158
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x144]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3d4]
cmp eax, dword [edi + 8]
jne 0x52e7ef
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 8], 0x40
je 0x52e7ef
test byte [edi + 4], 0x10
je 0x52e7ef
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x258]
cmp byte [ebp - 0x15], 0
je 0x52e836
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00419fbc
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x340]
push 0xcc0020
push 0
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0042ac30
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x48]
jge 0x52eb4b
cmp byte [ebp - 0x15], 0
je 0x52e8b7
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
neg eax
push eax
push 0
lea eax, [ebp - 0x13c]
push eax
call sub.user32.dll_OffsetRect
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
call fcn.0052c820
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x52eb3b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 4
je 0x52ea2f
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0052cb34
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
call fcn.00406364
cmp eax, dword [ebp - 0x24]
jg 0x52e918
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x505f6c]
call fcn.00406520
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
jne 0x52e942
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
call fcn.0052cb34
sub eax, dword [ebp - 0x24]
inc eax
mov edx, dword [ebp - 8]
imul dword [edx + 0x268]
sub dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00519d6c
test al, al
jne 0x52e98b
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x260]
jne 0x52e971
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00519d4c
test al, al
je 0x52e97e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 1
jmp 0x52e9c3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 4
jmp 0x52e9c3
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x260]
jne 0x52e9b8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00519d4c
test al, al
jne 0x52e9b8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 5
jmp 0x52e9c3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 3
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp - 0x24]
sub eax, 2
mov dword [ebp - 0x28], eax
jmp 0x52e9fe
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00519d6c
test al, al
je 0x52e9ee
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov byte [eax + edx], 2
jmp 0x52e9f8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov byte [eax + edx], 0
mov ebx, dword [ebx + 0x18]
dec dword [ebp - 0x28]
mov eax, dword [ebp - 8]
cmp ebx, dword [eax + 0x260]
jne 0x52e9d4
xor eax, eax
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x34]
jmp 0x52ea1f
test byte [ebx + 0xb], 1
je 0x52ea1c
inc dword [ebp - 0x4c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebp - 8]
cmp ebx, dword [eax + 0x260]
jne 0x52ea13
jmp 0x52eb3b
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
cmp eax, dword [edi + 8]
jne 0x52eab1
cmp dword [ebp - 0x24], 0
jle 0x52ea67
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
call fcn.00519d4c
test al, al
je 0x52ea5c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 2
jmp 0x52ea67
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 0
inc dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00406364
cmp eax, dword [ebp - 0x24]
jg 0x52ea94
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x505f6c]
call fcn.00406520
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
jne 0x52eb0e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x268]
add dword [ebp - 0x2c], eax
jmp 0x52eb0e
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x52eabd
dec dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 8]
cmp eax, dword [edx + 0x18]
je 0x52eb0e
jmp 0x52eb00
dec dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 8
jne 0x52eaeb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x268]
sub dword [ebp - 0x2c], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x52eb00
dec dword [ebp - 0x4c]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x34]
cmp eax, dword [edx + 0x18]
jne 0x52eacd
cmp dword [ebp - 0x24], 0
jle 0x52eb3b
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00519d4c
test al, al
je 0x52eb30
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 3
jmp 0x52eb3b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx - 1], 5
mov eax, dword [ebp - 0x34]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
jne 0x52dfad
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x48]
jge 0x52f075
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x12c]
xor edx, edx
mov eax, dword [ebp - 0x12c]
call fcn.00419fbc
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00419fbc
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dl, 7
mov eax, dword [ebp - 0x40]
call fcn.004306f0
mov edx, dword [ebp - 0x124]
sub edx, dword [ebp - 0x12c]
inc edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x120]
sub edx, dword [ebp - 0x128]
inc edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov edx, eax
lea ecx, [ebp - 0x12c]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x254]
test al, al
jne 0x52ef9a
cmp byte [ebp - 0x16], 0
je 0x52ecc2
push 0
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 0xa], 2
je 0x52ec90
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x330]
call fcn.0042cc08
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.0051c004
jmp 0x52ef9a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x330]
call fcn.0042cc08
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.0051c1b0
jmp 0x52ef9a
cmp byte [ebp - 0x1a], 0
je 0x52ef58
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x25c]
mov ebx, dword [eax + 8]
cmp dword [ebp - 0x50], 0xfffffffe
jne 0x52ed43
xor edx, edx
mov eax, ebx
call fcn.00514950
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xfffffffe
je 0x52ed3b
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
call fcn.0051214c
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x12c]
jg 0x52ed71
xor ecx, ecx
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.00514a4c
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xfffffffe
jne 0x52ecea
jmp 0x52ed71
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
call fcn.0051214c
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b4]
mov edx, 4
call fcn.00517ee0
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov eax, dword [eax + 0xc]
pop edx
call fcn.00429714
jmp 0x52ee9a
test byte [ebp + 0xc], 0x20
je 0x52edfd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 0x40
je 0x52edfd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 4
je 0x52edfd
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x52edd5
mov eax, ebx
call fcn.00513464
dec eax
cmp eax, dword [ebp - 0x50]
jbe 0x52edfd
mov eax, dword [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x114]
dec eax
push eax
mov edx, edi
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2ac]
dec dword [ebp - 0x114]
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
test byte [eax + 0x3c], 0x10
jne 0x52ee2e
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov eax, dword [eax + 0x14]
pop edx
call fcn.0042a014
jmp 0x52ee44
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x70]
call fcn.0042a014
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
lea edx, [ebp - 0x11c]
call fcn.0042a6f0
xor ecx, ecx
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.00514a4c
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xfffffffe
je 0x52ee9a
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
call fcn.0051214c
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0051346c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x50], 0xfffffffe
je 0x52eeb5
mov eax, dword [ebp - 0x124]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x11c]
jg 0x52ed9b
mov eax, dword [ebp - 0x124]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x114]
jle 0x52ef3d
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x124]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x114], eax
test byte [ebp + 0xc], 0x20
je 0x52ef14
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 0x40
je 0x52ef14
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x26c]
test byte [eax + 9], 4
je 0x52ef14
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
jne 0x52ef14
inc dword [ebp - 0x11c]
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x70]
call fcn.0042a014
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
lea edx, [ebp - 0x11c]
call fcn.0042a6f0
push 0
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x52ef9a
push 0
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x70]
call fcn.0042a014
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
lea edx, [ebp - 0x12c]
call fcn.0042a6f0
push 0
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x15], 0
je 0x52f036
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 8]
add eax, 0x2b4
call fcn.0050ccc8
mov eax, dword [ebp - 0x10]
neg eax
mov edx, dword [ebp - 8]
add eax, dword [edx + 0x410]
push eax
mov eax, dword [ebp - 0x14]
neg eax
add eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_OffsetRect
push 0
mov eax, dword [ebp - 0x14]
and eax, 1
push eax
push 0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
call sub.gdi32.dll_SetBrushOrgEx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x340]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042ac30
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0042ac30
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f09f
mov eax, dword [ebp - 0x40]
call fcn.0042f5ac
call fcn.0042aafc
mov eax, dword [ebp - 0x40]
call fcn.00403cc4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f0fa
lea eax, [ebp - 4]
mov edx, dword [0x505f6c]
call fcn.00406620
ret