Function at 0x420d70
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x49c
mov eax, dword [0x49e7c0]
xor eax, esp
mov dword [esp + 0x498], eax
mov ecx, dword [esp + 0x4ac]
push ebx
mov ebx, dword [esp + 0x4ac]
cmp ebx, 0x7b
push ebp
mov ebp, dword [esp + 0x4b8]
push esi
mov esi, dword [esp + 0x4ac]
push edi
mov edi, dword [esp + 0x4b4]
mov dword [esp + 0x18], edi
ja 0x4213f8
je 0x421186
lea eax, [ebx - 5]
cmp eax, 0x1b
ja case.0x42147e.10007
movzx eax, byte [eax + 0x42244c]
jmp dword [eax*4 + 0x422430]
mov esi, dword [esi + 8]
test esi, esi
je 0x420de6
push esi
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
jmp 0x422413
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push 0
push 0
mov ecx, esi
call eax
xor eax, eax
jmp 0x422413
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x44]
push eax
xor edi, edi
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esi + 0x18]
sub edx, eax
sub ebx, ecx
cmp ebp, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
je 0x421016
lea ecx, [ecx]
cmp dword [ebp + 0x28], 1
jne case.default.0x420e7c
cmp dword [ebp + 0x2c], 1
je case.default.0x420e7c
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, ebp
call edx
mov edi, eax
mov eax, dword [ebp + 0x30]
cmp eax, 3
ja case.default.0x420e7c
jmp dword [eax*4 + 0x422468]
cmp dword [ebp + 0x2c], 0
jne 0x420eba
mov eax, dword [esp + 0x24]
cmp edi, eax
jle 0x420e93
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push 4
push ebx
push edi
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [esp + 0x18], edi
sub dword [esp + 0x24], edi
jmp case.default.0x420e7c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 4
push ebx
push edi
push eax
mov eax, dword [ebp + 4]
add ecx, edx
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [esp + 0x10], edi
jmp case.default.0x420e7c
cmp dword [ebp + 0x2c], 0
mov eax, dword [esp + 0x24]
jne 0x420f26
cmp edi, eax
jle 0x420ef3
mov edi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push 4
push ebx
sub eax, edi
push edi
mov dword [esp + 0x30], eax
push ecx
add eax, edx
push eax
mov eax, dword [ebp + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
jmp case.default.0x420e7c
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 4]
push 4
push ebx
sub eax, edi
sub eax, dword [esp + 0x5c]
push edi
add eax, dword [esp + 0x24]
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [esp + 0x54], edi
jmp case.default.0x420e7c
cmp dword [ebp + 0x2c], 0
jne 0x420f84
cmp edi, ebx
jle 0x420f5b
mov edi, ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push 4
push edi
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [esp + 0x30], edi
sub ebx, edi
jmp case.default.0x420e7c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push 4
push edi
push eax
mov eax, dword [esp + 0x24]
add ecx, edx
push ecx
mov ecx, dword [ebp + 4]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [esp + 0x28], edi
jmp case.default.0x420e7c
cmp dword [ebp + 0x2c], 0
jne 0x420fdf
cmp edi, ebx
jle 0x420fba
mov edi, ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push 4
push edi
push edx
mov edx, dword [esp + 0x24]
sub ebx, edi
lea ecx, [ebx + eax]
mov eax, dword [ebp + 4]
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.default.0x420e7c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 4
mov edx, ebx
sub edx, edi
sub edx, dword [esp + 0x20]
push edi
add edx, dword [esp + 0x38]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
add dword [esp + 0x1c], edi
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x420e50
xor edi, edi
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x34]
push eax
push 2
mov ecx, esi
mov ebp, 1
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push 4
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push edi
push eax
call ebx
mov esi, dword [esi + 0x18]
cmp esi, edi
je 0x421098
lea esp, [esp]
cmp dword [esi + 0x28], ebp
jne 0x421091
cmp dword [esi + 0x2c], ebp
je 0x421091
cmp dword [esi + 0x30], 4
jne 0x421091
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push 4
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call ebx
mov esi, dword [esi + 0x14]
cmp esi, edi
jne 0x421060
xor eax, eax
jmp 0x422413
lea ecx, [esp + 0x68]
push ecx
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
lea edx, [esp + 0x68]
push edx
push edi
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
jmp 0x422413
mov eax, dword [esp + 0x4bc]
test ax, ax
jne 0x421112
mov edx, dword [0x4a000c]
test edx, edx
je 0x42117f
mov ecx, edx
call fcn.0041fc20
cmp eax, esi
jne 0x42117f
mov ecx, edx
call fcn.0040a150
test eax, eax
je 0x42117f
mov eax, dword [0x4a000c]
mov dword [esi + 0x1c], eax
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 0
mov ecx, esi
call eax
xor eax, eax
jmp 0x422413
cmp ax, 2
jne 0x421131
cmp dword [0x4a000c], 0
jne 0x421131
cmp byte [0x4a0018], 0
sete cl
mov byte [0x4a0018], cl
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x421174
mov ecx, edx
call fcn.0041fc20
cmp eax, esi
jne 0x421174
mov ecx, edx
call fcn.0040a150
test eax, eax
je 0x421174
mov ecx, dword [0x4a000c]
test ecx, ecx
je 0x421161
call fcn.0041fc20
cmp eax, esi
je 0x42117f
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 1
call eax
xor eax, eax
jmp 0x422413
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 1
mov ecx, esi
call eax
xor eax, eax
jmp 0x422413
mov ecx, dword [0x4a1388]
push 0x12e
push ecx
call dword [sym.imp.USER32.dll_LoadMenuW]
push 0
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp dword [esi + 0x2c], 1
mov edi, eax
je 0x4211b3
cmp dword [esi + 0x30], 4
je 0x4211f5
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x58]
push eax
push 0x12
mov ecx, esi
call edx
test eax, eax
je 0x4211f5
mov ebx, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push 0xb
push edi
call ebx
push 0x400
push 0xb
push edi
call ebx
push 0x400
push 0xb
push edi
call ebx
push 0x400
push 0xb
push edi
call ebx
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x2716
lea eax, [esp + 0xb4]
push edi
mov dword [esp + 0x78], 0x30
mov dword [esp + 0x7c], 0x11
mov dword [esp + 0x80], 0
mov dword [esp + 0xa0], 0x400
mov dword [esp + 0x9c], eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov edx, dword [esi + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_SetMenuItemInfoW]
neg edx
lea eax, [esp + 0x68]
push eax
sbb edx, edx
or dword [esp + 0x74], 0x200
push 0
and edx, 0xfffffff8
push 0x2716
add edx, 8
push edi
mov dword [esp + 0x84], edx
call ebx
lea edx, [esp + 0x68]
push edx
push 0
push 0x2715
lea ecx, [esp + 0xb4]
push edi
mov dword [esp + 0x80], 0
mov dword [esp + 0xa0], 0x400
mov dword [esp + 0x9c], ecx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esi + 0x2c]
sub eax, 1
neg eax
lea ecx, [esp + 0x68]
push ecx
sbb eax, eax
or dword [esp + 0x74], 0x200
push 0
and eax, 0xfffffff8
push 0x2715
add eax, 8
push edi
mov dword [esp + 0x84], eax
call ebx
lea eax, [esp + 0x68]
push eax
push 0
push 0x271a
lea edx, [esp + 0xb4]
push edi
mov dword [esp + 0x80], 0
mov dword [esp + 0xa0], 0x400
mov dword [esp + 0x9c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
xor ecx, ecx
cmp dword [esi + 0x2c], 2
lea edx, [esp + 0x68]
setne cl
or dword [esp + 0x70], 0x200
push edx
push 0
push 0x271a
push edi
sub ecx, 1
and ecx, 8
mov dword [esp + 0x84], ecx
call ebx
movzx eax, byte [esi + 0x34]
and eax, 1
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x6c], 1
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x271b
push edi
call ebx
movzx edx, byte [esi + 0x34]
lea eax, [esp + 0x68]
push eax
and edx, 2
push 0
add edx, edx
push 0x271c
add edx, edx
push edi
mov dword [esp + 0x84], edx
call ebx
movsx ebx, bp
shr ebp, 0x10
cmp ebx, 0xffffffff
movsx ebp, bp
je 0x421392
cmp ebp, 0xffffffff
jne 0x4213b3
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00420340
cmp esi, eax
je 0x4213d2
mov ecx, esi
call fcn.00420340
mov eax, dword [eax + 4]
jmp 0x4213d6
mov eax, dword [esp + 0x1c]
push 0
push eax
push 0
push ebp
push ebx
push 0
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
jmp 0x422413
cmp ebx, 0x200
ja 0x421ee7
je 0x4217e4
cmp ebx, 0x111
jne case.0x42147e.10007
movzx eax, cx
cmp eax, 0x271d
mov dword [esp + 0x1c], eax
mov edx, 1
je 0x42144c
cmp eax, 0x2715
je 0x42144c
cmp eax, 0x2716
je 0x42144c
cmp eax, 0x271a
je 0x42144c
cmp eax, 0x271b
je 0x42144c
cmp eax, 0x271c
jne 0x421470
cmp dword [esi + 0x2c], edx
je 0x421470
cmp dword [esi + 0x30], 4
jne 0x421470
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
push ebp
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x422413
add eax, 0xffffd8eb
cmp eax, 0xc
ja case.0x42147e.10007
jmp dword [eax*4 + 0x422478]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0
push 0
mov ecx, esi
call edx
push 0xffffffffffffffff
call fcn.0040acd0
add esp, 4
xor eax, eax
jmp 0x422413
cmp dword [esi + 0x2c], 0
je 0x4214c2
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, esi
call eax
xor eax, eax
jmp 0x422413
cmp dword [esi + 0x2c], edx
je 0x4214f3
mov ecx, dword [esi + 0x38]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
xor eax, eax
jmp 0x422413
cmp dword [esi + 0x2c], 2
je 0x421509
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
xor eax, eax
jmp 0x422413
mov eax, dword [esi + 0x34]
test al, 1
je 0x421524
and eax, 0xfffffffe
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x422413
or eax, edx
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x422413
mov eax, dword [esi + 0x34]
test al, 2
je 0x421544
and eax, 0xfffffffd
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x422413
or eax, 2
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x422413
mov edi, dword [esi + 0x18]
test edi, edi
je 0x421592
mov ecx, edi
call fcn.00420340
mov ecx, eax
call fcn.0040a150
test eax, eax
je 0x421585
mov ecx, edi
call fcn.00420340
cmp eax, esi
je 0x421585
mov eax, dword [edi + 0x24]
cmp eax, 3
je 0x421585
test eax, eax
jne 0x421762
cmp dword [edi + 4], 0
jne 0x4215fa
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x421558
mov ecx, dword [0x4a0008]
mov edi, esi
mov ebx, 4
mov ebp, 1
mov eax, dword [edi + 0x14]
test eax, eax
je 0x421619
mov ecx, eax
call fcn.0040a150
test eax, eax
mov ecx, dword [0x4a0008]
je 0x4215f5
mov eax, dword [edi + 0x14]
mov edx, dword [eax + 0x24]
cmp edx, 3
je 0x4215f5
test edx, edx
je 0x4215f5
cmp dword [eax + 0x2c], ebp
je 0x42166e
cmp dword [eax + 0x30], ebx
jne 0x42166e
cmp dword [eax + 0x10], ecx
jne 0x4215f5
cmp dword [esi + 0x10], ecx
jne 0x42166e
cmp dword [esi + 0x2c], ebp
je 0x42166e
cmp dword [esi + 0x30], ebx
jne 0x42166e
mov edi, dword [edi + 0x14]
jmp 0x42161c
mov eax, dword [esp + 0x4bc]
mov ecx, dword [edi + 4]
push ebp
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x422413
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x4215a4
cmp esi, ecx
je 0x421670
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x421670
jmp 0x421630
cmp edi, esi
je 0x421652
mov ecx, edi
call fcn.00420340
mov ecx, eax
call fcn.0040a150
test eax, eax
je 0x421652
mov eax, dword [edi + 0x24]
cmp eax, 3
je 0x421652
test eax, eax
jne 0x42167f
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x421630
mov ecx, dword [0x4a0008]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebp
call eax
xor eax, eax
jmp 0x422413
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push ebp
call eax
xor eax, eax
jmp 0x422413
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push ebp
mov ecx, edi
call eax
xor eax, eax
jmp 0x422413
push 0xffffffffffffffff
push edi
push 0x7b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x422413
mov ecx, esi
mov edi, edx
xor ebp, ebp
call fcn.00420340
push 1
mov ecx, esi
mov ebx, eax
call fcn.004202e0
test eax, eax
je 0x4216d5
lea ecx, [ecx]
cmp eax, ebx
jne 0x4216c6
mov ebp, edi
add edi, 1
push edi
mov ecx, esi
call fcn.004202e0
test eax, eax
jne 0x4216c0
cmp dword [esp + 0x1c], 0x271f
jne 0x4216e4
add ebp, 1
jmp 0x4216e7
sub ebp, 1
test ebp, ebp
jge 0x4216ee
lea ebp, [edi - 1]
cmp ebp, edi
jl 0x4216f4
xor ebp, ebp
push ebp
mov ecx, esi
call fcn.004202e0
push eax
mov ecx, esi
call fcn.004203b0
xor eax, eax
jmp 0x422413
mov ecx, esi
call fcn.00420340
mov edi, eax
cmp dword [edi + 0x30], 4
je 0x42172c
push 1
mov ecx, esi
call fcn.004202e0
push eax
push edi
mov ecx, esi
call fcn.00420b80
push 0
mov ecx, esi
call fcn.004202e0
push eax
mov ecx, esi
call fcn.004203b0
mov ecx, dword [edi + 0x38]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push 1
mov ecx, edi
call edx
xor eax, eax
jmp 0x422413
mov ecx, esi
call fcn.00420340
mov edi, eax
cmp dword [edi + 0x30], 4
je 0x4217ba
push 1
mov ecx, esi
call fcn.004202e0
push eax
push edi
mov ecx, esi
call fcn.00420b80
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0
push 0
mov ecx, edi
call edx
push 0
mov ecx, esi
call fcn.004202e0
push eax
mov ecx, esi
call fcn.004203b0
xor eax, eax
jmp 0x422413
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0
push 0
mov ecx, edi
call edx
mov eax, dword [edi + 4]
push 0
push 0x271f
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x422413
mov ebx, dword [esp + 0x18]
movsx edi, bp
shr ebp, 0x10
lea ecx, [esp + 0x10]
movsx ebp, bp
push ecx
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.USER32.dll_ClientToScreen]
lea edx, [esp + 0x44]
push edx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
call ebx
mov eax, dword [esi + 0x84]
cmp eax, 9
jne 0x421ae5
cmp dword [esi + 0x2c], 1
jne 0x42198e
test byte [esi + 0x34], 1
je 0x42193a
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x42193a
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov ecx, dword [0x4a0008]
push esi
call fcn.0041fe40
test eax, eax
je 0x42193a
mov eax, dword [esp + 0x54]
cmp eax, 4
jne 0x421903
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x2c], 1
je 0x421893
cmp dword [edi + 0x30], eax
jne 0x421893
mov edi, dword [edi + 0x10]
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push eax
push 4
push ecx
push edi
mov ecx, esi
call edx
push esi
mov ecx, esi
call fcn.004203b0
xor ebx, ebx
push ebx
mov ecx, edi
mov dword [esi + 0x84], 0xffffffff
call fcn.004202e0
test eax, eax
je 0x4218f2
cmp eax, esi
jne 0x4218e3
lea eax, [ebx + 0x13]
mov dword [edi + 0x84], eax
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x78], ecx
mov edx, dword [esp + 0x14]
mov dword [edi + 0x7c], edx
add ebx, 1
push ebx
mov ecx, edi
call fcn.004202e0
test eax, eax
jne 0x4218c8
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
mov ecx, dword [esi + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
xor eax, eax
jmp 0x422413
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x7c]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esi + 0x78]
add eax, dword [esp + 0x48]
add ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
push 5
push 0
push 0
push eax
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x4a06a4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esi + 0x38]
push eax
push edi
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
xor eax, eax
jmp 0x422413
test byte [esi + 0x34], 1
je 0x421ee0
mov eax, dword [esp + 0x10]
sub eax, dword [esi + 0x78]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jg 0x4219be
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x7c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jle 0x421ee0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x58]
push ecx
push 9
mov ecx, esi
call edx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_PtInRect]
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
jne 0x420de6
mov edx, dword [esi + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x421a05
mov eax, dword [esp + 0x38]
add eax, 0x20
mov dword [esp + 0x40], eax
jmp 0x421a42
cmp eax, 3
jne 0x421a17
mov ecx, dword [esp + 0x40]
add ecx, 0xffffffe0
mov dword [esp + 0x38], ecx
jmp 0x421a42
test eax, eax
jne 0x421a28
mov edx, dword [esp + 0x34]
add edx, 0x20
mov dword [esp + 0x3c], edx
jmp 0x421a42
cmp eax, 2
jne 0x421a3a
mov eax, dword [esp + 0x3c]
add eax, 0xffffffe0
mov dword [esp + 0x34], eax
jmp 0x421a42
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call edi
test eax, eax
jne 0x420de6
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [0x4a0008]
push edx
push eax
push esi
call fcn.0041fe40
test eax, eax
jne 0x420de6
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x38]
mov edi, dword [esp + 0x14]
mov ebp, dword [esi]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
sub edx, eax
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x3c]
lea ebx, [edx + ecx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0x38]
add edi, 0xfffffff8
mov dword [ecx + 4], edi
add eax, edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
xor eax, eax
jmp 0x422413
cmp eax, 0xa
jl 0x421d71
cmp eax, 0x11
jg 0x421d71
cmp byte [esi + 0x88], 0
jne 0x421b1d
cmp dword [esi + 0x2c], 1
mov byte [esi + 0x88], 1
jne 0x421b13
push 0
mov ecx, esi
jmp 0x421b18
mov ecx, dword [esi + 0x10]
push 1
call fcn.0041fb00
mov eax, dword [esi + 0x84]
cmp eax, 0xe
mov edx, dword [esp + 0x4c]
je 0x421b36
cmp eax, 0xa
je 0x421b36
cmp eax, 0xc
jne 0x421b66
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
mov ebp, dword [esp + 0x44]
mov edi, eax
sub edi, ecx
add edi, ebp
lea ebx, [edx - 0x18]
cmp edi, ebx
jle 0x421b5a
mov eax, edx
sub eax, ebp
lea eax, [eax + ecx - 0x18]
mov dword [esp + 0x10], eax
mov edi, eax
sub edi, ecx
add ebp, edi
mov dword [esp + 0x44], ebp
jmp 0x421b6e
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esi + 0x84]
cmp ecx, 0x10
je 0x421b83
cmp ecx, 0xb
je 0x421b83
cmp ecx, 0xd
jne 0x421baa
mov edi, dword [esi + 0x78]
mov ecx, edx
sub ecx, edi
lea edi, [ecx + eax]
lea ebx, [ebp + 0x18]
cmp edi, ebx
jge 0x421ba3
mov eax, dword [esi + 0x78]
mov edi, ebp
sub edi, edx
lea eax, [edi + eax + 0x18]
mov dword [esp + 0x10], eax
lea edx, [ecx + eax]
mov dword [esp + 0x4c], edx
mov ecx, dword [esi + 0x84]
cmp ecx, 0xf
mov eax, dword [esp + 0x50]
je 0x421bc3
cmp ecx, 0xa
je 0x421bc3
cmp ecx, 0xb
jne 0x421bfb
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x7c]
mov ebx, edi
sub ebx, ecx
mov ecx, dword [esp + 0x48]
add ebx, ecx
lea ebp, [eax - 0x18]
cmp ebx, ebp
jle 0x421bea
mov edi, dword [esi + 0x7c]
mov ebx, eax
sub ebx, ecx
lea edi, [ebx + edi - 0x18]
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0x44]
mov ebx, edi
sub ebx, dword [esi + 0x7c]
add ecx, ebx
mov dword [esp + 0x48], ecx
jmp 0x421c03
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esi + 0x84]
cmp ebx, 0x11
je 0x421c18
cmp ebx, 0xc
je 0x421c18
cmp ebx, 0xd
jne 0x421c49
mov ebp, dword [esi + 0x7c]
mov ebx, eax
sub ebx, ebp
mov dword [esp + 0x1c], ebx
add ebx, edi
lea ebp, [ecx + 0x18]
cmp ebx, ebp
jge 0x421c3b
mov edi, ecx
sub edi, eax
mov eax, dword [esi + 0x7c]
lea edi, [edi + eax + 0x18]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x44]
add eax, edi
mov dword [esp + 0x50], eax
cmp dword [esi + 0x2c], 1
mov edi, dword [esp + 0x18]
jne 0x421c9e
push 4
sub eax, ecx
push eax
sub edx, ebp
push edx
push ecx
push ebp
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x78], edx
xor eax, eax
jmp 0x422413
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x421cb1
cmp ebx, 2
je 0x421cb1
sub eax, ecx
mov dword [esi + 0x48], eax
jmp 0x421cb6
sub edx, ebp
mov dword [esi + 0x48], edx
mov ecx, dword [esi + 0x10]
call fcn.0041fbc0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x421d1f
cmp eax, 2
je 0x421d1f
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov eax, dword [esi + 0x48]
mov edx, ecx
sub edx, ebx
cmp eax, edx
je 0x421d5c
mov edi, dword [esi + 0x84]
cmp edi, 0xf
je 0x421d15
cmp edi, 0xa
je 0x421d15
cmp edi, 0xb
je 0x421d15
sub ecx, eax
sub ecx, ebx
add dword [esp + 0x14], ecx
jmp 0x421d59
sub eax, ecx
add eax, ebx
add dword [esp + 0x14], eax
jmp 0x421d59
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
mov eax, dword [esi + 0x48]
mov edx, ecx
sub edx, ebx
cmp eax, edx
je 0x421d5c
mov edi, dword [esi + 0x84]
cmp edi, 0xe
je 0x421d51
cmp edi, 0xa
je 0x421d51
cmp edi, 0xc
je 0x421d51
sub ecx, eax
sub ecx, ebx
add dword [esp + 0x10], ecx
jmp 0x421d59
sub eax, ecx
add eax, ebx
add dword [esp + 0x10], eax
mov dword [esi + 0x48], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edx
xor eax, eax
jmp 0x422413
cmp eax, 0x13
jl 0x421ee0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push ebp
push edi
mov ecx, esi
call eax
mov ebp, dword [esi + 0x84]
mov edi, eax
cmp edi, ebp
je 0x421ee0
cmp edi, 0x13
jl 0x421df1
lea ecx, [edi - 0x13]
push ecx
mov ecx, esi
call fcn.004202e0
push eax
add ebp, 0xffffffed
push ebp
mov ecx, esi
call fcn.004202e0
push eax
mov ecx, esi
call fcn.00420b80
push 0
mov ecx, esi
mov dword [esi + 0x84], 0xffffffff
call fcn.004202e0
mov dword [eax + 0x84], edi
mov edx, dword [esp + 0x10]
mov dword [eax + 0x78], edx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x14]
push edx
mov dword [eax + 0x7c], ecx
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
test byte [esi + 0x34], 1
je 0x420de6
mov ebx, dword [esp + 0x10]
mov eax, ebx
sub eax, dword [esi + 0x78]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jg 0x421e23
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x7c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jle 0x421ee0
lea eax, [ebp - 0x13]
push eax
mov ecx, esi
call fcn.004202e0
mov edi, eax
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x38]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
add ebx, ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [edi + 0x44]
sub ebx, dword [edi + 0x3c]
add eax, 0xfffffff8
add ebx, eax
cmp ebp, 0x13
mov dword [esp + 0x38], eax
jne 0x421e73
push 1
mov ecx, esi
call fcn.004202e0
push eax
push edi
mov ecx, esi
call fcn.00420b80
push 0
mov ecx, esi
call fcn.004202e0
push eax
mov ecx, esi
call fcn.004203b0
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], ebx
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push 1
mov ecx, edi
call edx
mov dword [esi + 0x84], 0xffffffff
mov edx, dword [edi + 4]
mov dword [edi + 0x84], 9
mov eax, dword [esp + 0x10]
mov dword [edi + 0x78], eax
mov ecx, dword [esp + 0x14]
push edx
mov dword [edi + 0x7c], ecx
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
cmp ebx, 0x203
ja 0x42215b
je 0x4220ae
mov eax, ebx
sub eax, 0x201
je 0x422008
sub eax, 1
jne case.0x42147e.10007
cmp byte [esi + 0x88], 1
mov edi, dword [esi + 0x84]
mov dword [esi + 0x84], 0xffffffff
jne 0x421f45
cmp dword [esi + 0x2c], 1
mov byte [esi + 0x88], 0
jne 0x421f3b
push 0
mov ecx, esi
jmp 0x421f40
mov ecx, dword [esi + 0x10]
push 1
call fcn.0041fb60
cmp edi, 4
jge 0x421f4f
cmp edi, 9
jge 0x421f79
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x58]
push ecx
push edi
mov ecx, esi
call edx
mov ebx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x421f7d
mov ebx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
mov eax, ebp
shr eax, 0x10
movsx ecx, ax
movsx eax, bp
push ecx
push eax
mov ecx, esi
call edx
cmp edi, eax
jne 0x421ffb
cmp eax, 4
jne 0x421fbc
push 0
push 0x271d
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
jmp 0x422413
cmp eax, 5
jne 0x421ffb
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x34]
push ecx
push 5
mov ecx, esi
call edx
push 2
lea eax, [esp + 0x38]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [esp + 0x40]
movzx edx, word [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
push ebx
push 0x7b
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
jmp 0x422413
mov edx, dword [esi]
movsx eax, bp
shr ebp, 0x10
movsx ecx, bp
push ecx
lea edi, [esi + 0x78]
mov dword [edi], eax
mov dword [esi + 0x7c], ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ebx, dword [esp + 0x18]
push edi
push ebx
mov dword [esi + 0x84], eax
mov byte [esi + 0x88], 0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esi + 0x84]
cmp eax, 4
jge 0x42204d
cmp eax, 9
jge 0x422071
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x58]
push ecx
push eax
mov ecx, esi
call edx
push 0
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x84]
cmp eax, 0x13
jl 0x4220a0
add eax, 0xffffffed
push eax
mov ecx, esi
call fcn.004202e0
mov edi, eax
test edi, edi
je 0x4220a0
push edi
mov ecx, esi
call fcn.004203b0
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push 1
mov ecx, edi
call eax
push ebx
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
mov eax, ebp
shr eax, 0x10
movsx ecx, ax
movsx eax, bp
push ecx
push eax
mov ecx, esi
call edx
cmp eax, 9
jne 0x422135
test byte [esi + 0x34], 1
je 0x42214d
mov eax, dword [esi + 0x10]
test eax, eax
je case.0x42147e.10007
cmp dword [esi + 0x2c], 1
mov edx, dword [esi]
jne 0x422104
mov ecx, dword [esi + 0x48]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, dword [esi + 0x30]
push ecx
mov ecx, dword [esi + 0x14]
push ecx
push eax
mov ecx, esi
call edx
push edi
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
mov ecx, dword [esi + 0x38]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
push edi
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
cmp eax, 0x13
jl 0x42214d
push 0
push 0x2719
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
jmp 0x422413
cmp ebx, 0x1408
jne case.0x42147e.10007
cmp ebx, 0x20
jne 0x422234
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, edi
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push eax
push ecx
mov ecx, esi
mov edi, 0x7f00
call edx
add eax, 0xfffffff6
cmp eax, 7
ja case.default.0x4221b9
jmp dword [eax*4 + 0x4224ac]
mov edi, 0x7f82
jmp case.default.0x4221b9
mov edi, 0x7f83
jmp case.default.0x4221b9
mov edi, 0x7f84
jmp case.default.0x4221b9
mov edi, 0x7f85
push edi
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x28]
cmp dword [esi + 0x78], eax
mov ecx, dword [esp + 0x2c]
jne 0x422200
cmp dword [esi + 0x7c], ecx
je case.0x42147e.10007
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
cmp dword [0x4a0638], 0
jne case.0x42147e.10007
mov ecx, dword [esi + 8]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x422292
mov eax, dword [esp + 0x4bc]
mov edi, dword [esi + 8]
movsx ecx, ax
shr eax, 0x10
cmp dword [esi + 0x24], 0
movsx edx, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jne 0x42226a
mov ecx, esi
call fcn.00420340
test eax, eax
je 0x42226a
mov ecx, esi
call fcn.00420340
mov edi, dword [eax + 8]
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0x2c], 0
jne 0x4222ba
cmp dword [esi + 0x30], 4
jne 0x4222ba
mov ecx, dword [esp + 0x4bc]
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
push ebp
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4223e1
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4223e1
cmp dword [edi + 0x28], 1
jne 0x4223d6
mov edx, dword [edi + 0x2c]
cmp edx, 2
je 0x4222e0
cmp edx, 3
jne 0x4223d6
mov ecx, dword [edi + 0x30]
xor al, al
cmp ecx, 3
ja case.default.0x4222ea
jmp dword [ecx*4 + 0x4224cc]
mov ecx, dword [esp + 0x34]
add ecx, 0x14
cmp dword [esp + 0x1c], ecx
jge case.default.0x4222ea
jmp 0x422329
mov ecx, dword [esp + 0x38]
add ecx, 0x14
cmp dword [esp + 0x20], ecx
jge case.default.0x4222ea
jmp 0x422329
mov ecx, dword [esp + 0x3c]
add ecx, 0xffffffec
cmp dword [esp + 0x1c], ecx
jmp 0x422327
mov ecx, dword [esp + 0x40]
add ecx, 0xffffffec
cmp dword [esp + 0x20], ecx
jl case.default.0x4222ea
mov al, 1
cmp edx, 3
jne 0x422381
test al, al
je 0x4223d6
cmp dword [edi + 4], 0
mov dword [edi + 0x2c], 2
jne 0x422352
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push 0
push 1
mov ecx, edi
call eax
mov ecx, dword [edi + 4]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push 1
mov ecx, edi
call eax
cmp ebx, 0x1408
jne 0x4223d6
or dword [ebp], 1
jmp 0x4223d6
test al, al
jne 0x4223d6
mov edx, dword [edi + 4]
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4223d6
push eax
mov eax, dword [edi + 4]
push eax
mov dword [edi + 0x2c], 3
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push 1
mov ecx, esi
call eax
cmp ebx, 0x1408
jne 0x4223d6
or dword [ebp], 2
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4222c5
cmp ebx, 0x20
jne 0x422410
cmp dword [esi + 0x24], 0
jne 0x422409
cmp dword [esi + 0x10], 0
jne 0x422409
mov ecx, dword [esp + 0x4bc]
mov edx, dword [esp + 0x18]
push ebp
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x422413
mov eax, 1
jmp 0x422413
mov eax, dword [ebp]
mov ecx, dword [esp + 0x4a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004777ea
add esp, 0x49c
ret 0x14