Function at 0x40e720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x66a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6783c8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f6ca
push 0xfffffffffffffff0
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x2e0], eax
push 0x80000
push 0x80000
push 0x1036
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2e0]
and eax, 0x100
je 0x40e7e0
call fcn.00410880
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
cmp edx, 5
jle 0x40e7c7
push 0
push 0x7071
push 0x111
mov eax, dword [0x6783c4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e7e0
push 0
push 0x7051
push 0x111
mov ecx, dword [0x6783c4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2c4], 0
lea edx, [ebp - 0x2c4]
push edx
mov eax, dword [0x6783c8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x2c4]
push ecx
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x40f6af
mov dword [ebp - 0x21c], 0
xor edx, edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x210], edx
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0
push 0x1033
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2c8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x2c8]
and ecx, 0xffff
movzx edx, cx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x280], 0
xor eax, eax
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410ad0
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0xffffffff
je 0x40f6a2
lea ecx, [ebp - 0x280]
push ecx
mov edx, dword [ebp - 0x274]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410e20
movzx edx, al
test edx, edx
je 0x40f6a2
mov dword [ebp - 0x268], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004ac380
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x40ebff
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x40ebff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410ad0
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
je 0x40ebff
mov dword [ebp - 0x22c], 0
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x28c], 0
xor edx, edx
mov dword [ebp - 0x288], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410d50
movzx ecx, al
test ecx, ecx
je 0x40ebff
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x26c]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410e20
movzx eax, al
test eax, eax
je 0x40ebff
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2b4], ecx
cmp dword [ebp - 0x2b4], 0
jle 0x40eabf
mov edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x264]
cmp edx, dword [ebp - 0x210]
jae 0x40ea49
mov eax, dword [ebp - 0x288]
add eax, dword [ebp - 0x264]
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x264]
push ecx
push 0
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x40eaab
mov eax, dword [ebp - 0x28c]
add eax, dword [ebp - 0x284]
mov dword [ebp - 0x28c], eax
push 0
mov ecx, dword [ebp - 0x284]
push ecx
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x264]
jbe 0x40eaab
mov ecx, dword [ebp - 0x288]
sub ecx, dword [ebp - 0x264]
mov dword [ebp - 0x288], ecx
mov edx, dword [ebp - 0x264]
neg edx
push edx
push 0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x40ea71
mov ecx, dword [ebp - 0x2b4]
sub ecx, 1
mov dword [ebp - 0x2b4], ecx
jmp 0x40e9fe
mov eax, dword [ebp - 0x22c]
add eax, dword [ebp - 0x224]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x228]
add eax, dword [ebp - 0x220]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x314], eax
lea edx, [ebp - 0x318]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410ca0
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
je 0x40eb5a
mov edx, dword [ebp - 0x214]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x210]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x26c]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x310], eax
jmp 0x40eb64
mov dword [ebp - 0x310], 0
mov edx, dword [ebp - 0x28c]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x288]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x274]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x26c], 0xffffffff
je 0x40ebf5
mov edx, dword [ebp - 0x280]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x27c]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x26c]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x30c], eax
jmp 0x40ebff
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x268], 0
jne 0x40ee9d
lea edx, [ebp - 0x20c]
push edx
push 0xa
call fcn.004109d0
movzx eax, al
test eax, eax
je 0x40ee9d
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410ad0
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
je 0x40ee9d
mov dword [ebp - 0x23c], 0
xor ecx, ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x2a8], 0
xor edx, edx
mov dword [ebp - 0x2a4], edx
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410d50
movzx ecx, al
test ecx, ecx
je 0x40ee9d
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410e20
movzx eax, al
test eax, eax
je 0x40ee9d
mov ecx, dword [ebp - 0x21c]
add ecx, dword [ebp - 0x284]
cmp dword [ebp - 0x2a8], ecx
jae 0x40ee9d
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x238]
lea ecx, [eax + edx*2]
cmp ecx, dword [ebp - 0x210]
jae 0x40ed33
mov edx, dword [ebp - 0x2a4]
add edx, dword [ebp - 0x264]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x264]
push eax
push 0
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x40ed5d
mov edx, dword [ebp - 0x2a4]
sub edx, dword [ebp - 0x264]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x264]
neg eax
push eax
push 0
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x23c]
add eax, dword [ebp - 0x234]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x238]
add eax, dword [ebp - 0x230]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x31c], eax
lea edx, [ebp - 0x320]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410ca0
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
je 0x40edf8
mov edx, dword [ebp - 0x214]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x210]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x270]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x308], eax
jmp 0x40ee02
mov dword [ebp - 0x308], 0
mov edx, dword [ebp - 0x2a8]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x2a4]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x274]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x270], 0xffffffff
je 0x40ee93
mov edx, dword [ebp - 0x280]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x27c]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x270]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x304], eax
jmp 0x40ee9d
mov dword [ebp - 0x304], 0
cmp dword [ebp - 0x268], 0
jne 0x40f061
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x2cc], eax
mov edx, dword [ebp - 0x2cc]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
mov dword [ebp - 0x300], ecx
mov edx, dword [ebp - 0x2cc]
and edx, 0xffff
movzx eax, dx
shr eax, 8
and eax, 0xff
movzx ecx, al
mov dword [ebp - 0x2fc], ecx
mov edx, dword [ebp - 0x2fc]
and edx, 0xff
movzx eax, dl
mov ecx, dword [ebp - 0x300]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
movzx eax, ax
cmp eax, 0x600
jg 0x40f061
lea ecx, [ebp - 0x20c]
push ecx
push 1
call fcn.004109d0
movzx edx, al
test edx, edx
je 0x40f061
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410ad0
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0xffffffff
je 0x40f061
mov dword [ebp - 0x2dc], 0
xor eax, eax
mov dword [ebp - 0x2d8], eax
lea ecx, [ebp - 0x2dc]
push ecx
mov edx, dword [ebp - 0x298]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410e20
movzx edx, al
test edx, edx
je 0x40f061
mov eax, dword [ebp - 0x214]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x210]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x298]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2dc]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x2d8]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x274]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x280]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x27c]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x298]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x268], 0
jne 0x40f2ba
lea eax, [ebp - 0x20c]
push eax
push 0xa
call fcn.004109d0
movzx ecx, al
test ecx, ecx
je 0x40f2ba
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410ad0
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x40f2ba
mov dword [ebp - 0x24c], 0
xor edx, edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x2c0], 0
xor eax, eax
mov dword [ebp - 0x2bc], eax
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x278]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410d50
movzx edx, al
test edx, edx
je 0x40f2ba
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410e20
movzx ecx, al
test ecx, ecx
je 0x40f2ba
mov edx, dword [ebp - 0x21c]
add edx, dword [ebp - 0x284]
cmp dword [ebp - 0x2c0], edx
jae 0x40f2ba
mov eax, dword [ebp - 0x2bc]
sub eax, dword [ebp - 0x264]
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x264]
neg ecx
push ecx
push 0
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x24c]
add eax, dword [ebp - 0x244]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x248]
add eax, dword [ebp - 0x240]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410ca0
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x40f217
mov eax, dword [ebp - 0x214]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x210]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x278]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2e8], eax
jmp 0x40f221
mov dword [ebp - 0x2e8], 0
mov eax, dword [ebp - 0x2c0]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x2bc]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x274]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x40f2b0
mov eax, dword [ebp - 0x280]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x27c]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x278]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2ec], eax
jmp 0x40f2ba
mov dword [ebp - 0x2ec], 0
cmp dword [ebp - 0x268], 0
jne 0x40f576
mov eax, dword [ebp - 0x284]
shr eax, 1
add eax, dword [ebp - 0x21c]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], 0
jmp 0x40f2f6
mov ecx, dword [ebp - 0x290]
add ecx, 1
mov dword [ebp - 0x290], ecx
cmp dword [ebp - 0x268], 0
jne 0x40f576
mov edx, dword [ebp - 0x290]
cmp edx, dword [ebp - 0x210]
jge 0x40f576
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410ca0
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0xffffffff
je 0x40f571
mov dword [ebp - 0x25c], 0
xor eax, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x2b0], 0
xor ecx, ecx
mov dword [ebp - 0x2ac], ecx
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410d50
movzx eax, al
test eax, eax
je 0x40f571
lea ecx, [ebp - 0x2b0]
push ecx
mov edx, dword [ebp - 0x2b8]
push edx
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410e20
movzx edx, al
test edx, edx
je 0x40f571
mov eax, dword [ebp - 0x264]
shl eax, 2
push eax
push 0
lea ecx, [ebp - 0x25c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x2ac]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x290]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x258]
lea ecx, [eax + edx*2]
cmp ecx, dword [ebp - 0x210]
jbe 0x40f461
mov edx, dword [ebp - 0x264]
neg edx
push edx
push 0
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x2ac]
sub ecx, dword [ebp - 0x264]
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x290]
sub edx, dword [ebp - 0x264]
mov dword [ebp - 0x290], edx
jmp 0x40f40c
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [0x6783c8]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.00410ca0
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
je 0x40f4ce
mov eax, dword [ebp - 0x214]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x210]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x29c]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2f0], eax
jmp 0x40f4d8
mov dword [ebp - 0x2f0], 0
mov eax, dword [ebp - 0x2b0]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x2ac]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x274]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x29c], 0xffffffff
je 0x40f567
mov eax, dword [ebp - 0x280]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x27c]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp - 0x29c]
push ecx
push 0x100f
mov edx, dword [0x6783c8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2f4], eax
jmp 0x40f571
mov dword [ebp - 0x2f4], 0
jmp 0x40f2e7
cmp dword [ebp - 0x268], 0
jne 0x40f6a2
push 0x5f62ec
mov eax, dword [0x6783c8]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00410ad0
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0xffffffff
je 0x40f6a2
mov dword [ebp - 0x2d4], 0
xor edx, edx
mov dword [ebp - 0x2d0], edx
lea eax, [ebp - 0x2d4]
push eax
mov ecx, dword [ebp - 0x2a0]
push ecx
mov edx, dword [0x6783c8]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.00410e20
movzx ecx, al
test ecx, ecx
je 0x40f6a2
mov edx, dword [ebp - 0x214]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x210]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x2a0]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x2d4]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x2d0]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x274]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x280]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp - 0x27c]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 0x2a0]
push eax
push 0x100f
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f8]
push eax
push 0
push 0x1036
mov ecx, dword [0x6783c8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c1bd
mov esp, ebp
pop ebp
ret