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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x5203c4]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], edi
cmp ecx, 0x100
ja 0x40e19a
je 0x40e0d4
lea eax, [ecx - 1]
cmp eax, 0x85
ja case.0x40e9ee.34772
movzx eax, byte [eax + 0x40eac8]
jmp dword [eax*4 + 0x40ea8c]
sub esp, 0x10
mov ecx, esi
call fcn.00410080
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x40db87
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0xb
call fcn.00438d50
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x40dbaa
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0xe
call fcn.00438d50
mov ecx, dword [esi + 0xc8]
test ecx, ecx
je 0x40dbcd
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0xe
call fcn.00438d50
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x40dbf0
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0xe
call fcn.00438d50
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x40dc3a
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0xfffffc1b
call fcn.00438d50
mov eax, dword [esi + 0xac]
mov ecx, esi
push 0
push 0
push 0x20
push eax
mov dword [esi + 0xac], 0
call fcn.0040f2f0
push 4
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x40dc50
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov eax, 1
mov dword [edx], eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.0040f390
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0x10
push edx
push edi
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.004108f0
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
mov eax, dword [esi + 0xc8]
test eax, eax
mov ecx, dword [esi + 0xb8]
cmovne ecx, eax
movsx edx, di
mov eax, dword [esi + 0xd4]
test eax, eax
mov dword [esp + 0x2c], edx
cmovne ecx, eax
mov dword [esi + 0xc0], edx
mov eax, edi
mov dword [esp + 0x20], ecx
shr eax, 0x10
cwde
mov dword [esp + 0x28], eax
mov dword [esi + 0xc4], eax
test ecx, ecx
je 0x40dd52
cmp byte [ecx + 0x24], 0
je 0x40dd52
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x2c]
sub esp, 8
mov eax, esp
mov byte [esi + 0xe3], 0
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
push 0xe
call fcn.00438d50
mov dword [esi + 0xb8], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xd4], 0
mov ecx, dword [esp + 0x14]
jmp 0x40dead
movsx eax, di
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 0x10
cwde
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0xb8], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], ecx
je 0x40ddde
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esp + 0x18]
sub esp, 8
mov ecx, esp
mov byte [esi + 0xe3], 0
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0xb8]
push ecx
mov dword [esp], 0
push 0
push ecx
push dword [ebp + 0xc]
push 0xfffffc19
call fcn.00438d50
mov dword [esi + 0xb8], 0
mov ecx, dword [esp + 0x14]
jmp 0x40dead
cmp di, 1
jne case.0x40e9ee.34772
cmp dword [esi + 0xb8], 0
jne 0x40dea5
cmp dword [esi + 0xc8], 0
jne 0x40dea5
cmp dword [esi + 0xd4], 0
jne 0x40dea5
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc4], ecx
mov ecx, dword [esi + 0x10]
push 0
push 0
mov dword [esi + 0xc0], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x411bf0
mov eax, dword [eax + 0x60]
call eax
test eax, eax
je 0x40dc50
mov ecx, dword [esp + 0x18]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [edx + 4], ecx
mov ecx, eax
push 0x24
call fcn.00438d50
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
jmp 0x40dead
mov dword [edx], 1
mov ecx, edx
xor eax, eax
cmp dword [ecx], 0
jne 0x40deca
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
push dword [sym.imp.USER32.dll_DefWindowProcW]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
je case.0x40db4a.133
push edi
push dword [ebp + 0xc]
lea eax, [ecx + 0x2000]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
mov dword [edx], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push eax
push 2
push dword [esi + 0xc]
movaps xmmword [esp + 0x5c], xmm0
movaps xmmword [esp + 0x6c], xmm0
movq qword [esp + 0x7c], xmm0
mov dword [esp + 0x5c], 0x28
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
neg eax
push eax
mov eax, dword [esp + 0x58]
neg eax
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
sub eax, ecx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x4c]
sub eax, edx
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
mov ecx, esi
lea eax, [esp + 0x30]
mov dword [edi + 0x14], edx
push eax
call fcn.0040da40
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov edx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x1f0]
mov dword [esp + 0x20], ecx
cmp ecx, 0x64
je 0x40dffa
push 0x64
push ecx
push eax
call edx
push 0x64
push dword [esp + 0x24]
mov dword [esp + 0x20], eax
push dword [esp + 0x30]
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
call eax
mov edx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + esi]
mov esi, dword [esp + 0x28]
lea ecx, [ecx + esi]
mov esi, dword [esp + 0x2c]
je 0x40e01f
mov dword [edi + 0x20], eax
test ecx, ecx
je 0x40e026
mov dword [edi + 0x24], ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x1f0]
mov dword [esp + 0x18], ecx
cmp ecx, 0x64
je 0x40e063
push 0x64
push ecx
push eax
call edx
mov edx, dword [esp + 0x28]
push 0x64
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
push edx
call eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + edx]
mov edx, dword [esp + 0x28]
lea ecx, [ecx + edx]
je 0x40e084
mov dword [edi + 0x18], eax
test ecx, ecx
je 0x40e08b
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0
jmp 0x40deb4
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
sete al
mov dword [esp + 0x18], eax
jmp 0x40deaf
push edx
push edi
sub esp, 8
mov ecx, esi
call fcn.00411500
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x40dc50
mov eax, dword [ebp + 0xc]
cmp eax, 9
jne 0x40e175
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x40e153
mov ecx, dword [esi + 0xac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x40e153
push 0
push 0x521944
push 0x521980
push 0
push dword [esi + 0xac]
call fcn.004ae9dc
add esp, 0x14
test eax, eax
je 0x40e153
push 0
push 0x521944
push 0x521980
push 0
push dword [esi + 0xac]
call fcn.004ae9dc
add esp, 0x14
cmp byte [eax + 0x33d], 0
jne 0x40dc50
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0040ef40
mov ecx, dword [esp + 0x14]
jmp 0x40dead
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edi
push eax
push 3
mov dword [esi + 0xbc], ecx
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
cmp ecx, 0x231
ja 0x40e7b6
je 0x40e8f7
cmp ecx, 0x10d
ja 0x40e261
je 0x40e231
sub ecx, 0x101
je 0x40e1fb
sub ecx, 1
jne case.0x40e9ee.34772
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x40dc50
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edi
push eax
push 5
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x40e228
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edi
push eax
push 4
call fcn.00438d50
mov dword [esi + 0xbc], 0
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x40dc50
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edi
push eax
push 0x21
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
lea eax, [ecx - 0x10e]
cmp eax, 0xfc
ja case.0x40e9ee.34772
movzx eax, byte [eax + 0x40eb7c]
jmp dword [eax*4 + 0x40eb50]
cmp dword [esi + 0xc8], 0
jne 0x40dc50
cmp dword [esi + 0xd4], 0
jne 0x40dc50
cmp byte [esi + 0xe2], 0
jne 0x40e2f1
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], 3
test eax, eax
jne 0x40e2cb
mov dword [esp + 0x3c], 0x190
jmp 0x40e2df
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [esi + 0xe2], 1
mov eax, edi
movsx edx, di
shr eax, 0x10
cmp byte [esi + 0xe3], 0
cwde
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esi + 0xc0], edx
mov dword [esi + 0xc4], eax
jne 0x40e333
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0040ed60
test al, al
je 0x40dc50
mov edx, dword [esp + 0x18]
cmp dword [esi + 0xb8], 0
je 0x40e353
sub esp, 8
mov ecx, esp
push ecx
mov dword [ecx], edx
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0xb8]
jmp 0x40e375
cmp dword [esi + 0xb0], 0
je 0x40dc50
sub esp, 8
mov ecx, esp
push ecx
mov dword [ecx], edx
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0xb0]
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
push 9
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
cmp dword [esi + 0xc8], 0
jne 0x40dc50
cmp dword [esi + 0xd4], 0
jne 0x40dc50
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
movsx ecx, di
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, edi
shr eax, 0x10
mov dword [esi + 0xc0], ecx
mov ecx, dword [esi + 0x10]
cwde
push 0
push 0
mov dword [esp + 0x2c], eax
mov dword [esi + 0xc4], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x411bf0
mov eax, dword [eax + 0x60]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x40dc50
cmp dword [eax + 0x288], esi
jne 0x40dc50
mov dword [esi + 0xb8], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x48]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esp + 0x20]
sub esp, 8
mov ecx, esp
mov byte [esi + 0xe3], 1
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x30]
push 0xd
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
cmp dword [esi + 0xc8], 0
jne 0x40dc50
cmp dword [esi + 0xd4], 0
jne 0x40dc50
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
movsx ecx, di
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, edi
shr eax, 0x10
mov dword [esi + 0xc0], ecx
mov ecx, dword [esi + 0x10]
cwde
push 0
push 0
mov dword [esp + 0x2c], eax
mov dword [esi + 0xc4], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x411bf0
mov eax, dword [eax + 0x60]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x40dc50
cmp dword [eax + 0x288], esi
jne 0x40dc50
mov dword [esi + 0xb8], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x48]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esp + 0x20]
sub esp, 8
mov ecx, esp
mov byte [esi + 0xe3], 1
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x30]
push 0xf
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
cmp dword [esi + 0xc8], 0
jne 0x40dc50
cmp dword [esi + 0xd4], 0
jne 0x40dc50
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
movsx ecx, di
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, edi
shr eax, 0x10
mov dword [esi + 0xc0], ecx
mov ecx, dword [esi + 0x10]
cwde
push 0
push 0
mov dword [esp + 0x2c], eax
mov dword [esi + 0xc4], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x411bf0
mov eax, dword [eax + 0x60]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x40dc50
cmp dword [eax + 0x288], esi
jne 0x40dc50
push dword [esi + 0xc]
mov dword [esi + 0xb8], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esp + 0x20]
sub esp, 8
mov ecx, esp
mov byte [esi + 0xe3], 1
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x30]
push 0xfffffc18
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov eax, edi
movsx ecx, di
shr eax, 0x10
cwde
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [esi + 0xb8], 0
mov byte [esi + 0xe3], 0
je 0x40ddde
mov ecx, dword [esp + 0x18]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xb8]
push 0xe
jmp 0x40ddcf
mov eax, edi
movsx ecx, di
shr eax, 0x10
cwde
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [esi + 0xb8], 0
mov byte [esi + 0xe3], 0
je 0x40dc50
mov ecx, dword [esp + 0x18]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp], 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xb8]
push 0x10
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x40dc50
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push edi
push eax
push 0x22
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
movsx eax, di
mov dword [esp + 0x18], eax
mov eax, edi
shr eax, 0x10
cwde
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc4], ecx
mov ecx, dword [esi + 0x10]
push 0
push 0
mov dword [esi + 0xc0], eax
mov eax, dword [ecx]
push 0xd
push edx
push 0x411bf0
mov eax, dword [eax + 0x60]
call eax
mov ecx, eax
test ecx, ecx
je 0x40dc50
cmp dword [ecx + 0x288], esi
jne 0x40dc50
mov eax, dword [ebp + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push 0
shr eax, 0x10
push edi
cwde
push eax
push 0x13
call fcn.00438d50
mov ecx, dword [esp + 0x14]
jmp 0x40dead
test edi, edi
je case.0x40e9ee.34772
push edi
push dword [ebp + 0xc]
lea eax, [ecx + 0x2000]
mov dword [edx], 1
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
cmp dword [ebp + 0xc], 0xf060
jne 0x40dc50
push 0
push 0
push 0x10
mov dword [edx], 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x14]
jmp 0x40dead
cmp ecx, 0x8001
ja 0x40e934
je 0x40e929
lea eax, [ecx - 0x232]
cmp eax, 0xae
ja case.0x40e9ee.34772
movzx eax, byte [eax + 0x40ec98]
jmp dword [eax*4 + 0x40ec7c]
mov eax, dword [ebp + 0xc]
push 0x60
push 0x64
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi + 0x1f0], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
push 0x14
push eax
mov eax, dword [edi + 8]
sub eax, edx
push eax
push ecx
push edx
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 5
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x14]
jmp 0x40dead
push edx
push edi
sub esp, 8
mov ecx, esi
call fcn.00410ab0
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
mov ecx, dword [esi + 0x78]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x40e86c
lea eax, [esi + 0x7c]
push eax
push 0
push 0x411
push ecx
call edx
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esi + 0xe2], 0
je 0x40e883
push 0xffffffffffffffff
push 0
push 0x200
push dword [esi + 0xc]
call edx
mov ecx, dword [esp + 0x14]
mov byte [esi + 0xe2], 0
jmp 0x40dead
push ecx
push edi
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00410d50
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
push edx
push edi
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00411080
mov ecx, dword [esp + 0x14]
jmp 0x40deaf
sub ecx, 0x83
je 0x40e90a
sub ecx, 0x1ae
je 0x40e8f7
sub ecx, 1
jne 0x40ddde
push 0x37
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi + 0xc]
mov dword [esi + 0x258], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x258], 1
jmp 0x40dead
cmp dword [esi + 0x258], 0
je 0x40e91a
test edi, edi
je 0x40e91a
inc dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [edx], 1
jmp 0x40dead
mov dword [esi + 0x1f8], edi
jmp case.0x40e9ee.34772
cmp ecx, 0x87d1
ja 0x40e9df
je 0x40e9cf
sub ecx, 0x8003
je 0x40e992
sub ecx, 1
jne case.0x40e9ee.34772
test edi, edi
je 0x40dc87
push ecx
push 0x5219a4
push 0x521980
push ecx
push edi
mov ecx, esi
call fcn.0040f070
push eax
call fcn.004ae9dc
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
je 0x40dc87
push 0
push 0x5219a4
push 0x521980
push 0
push edi
mov ecx, esi
call fcn.0040f090
push eax
call fcn.004ae9dc
mov ecx, dword [esp + 0xa0]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.00410030
mov ecx, dword [esp + 0x14]
jmp 0x40dead
add ecx, 0xffff782e
cmp ecx, 4
ja case.0x40e9ee.34772
jmp dword [ecx*4 + 0x40ed48]
cmp dword [esi + 0x250], 0
je 0x40ddde
cmp dword [esi + 0x254], 0
je 0x40ddde
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [esi + 0x250]
mov edi, eax
mov esi, dword [ecx + 4]
add ecx, 4
test edi, edi
sete dl
movzx edx, dl
push edx
call dword [esi + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x254]
add ecx, 4
test edi, edi
setne al
movzx eax, al
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov dword [esi + 0x1f4], edi
jmp case.0x40e9ee.34772
mov ecx, dword [esi + 0x10]
push 0
call fcn.00437020
mov ecx, dword [esp + 0x14]
jmp 0x40dead
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esp + 0x14]
jmp 0x40dead