Function at 0x40acb0
Capabilities:
Get disk size
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x43f9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x453b8c]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453b8c]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [esp + 0x174]
mov ebp, dword [esp + 0x168]
mov esi, dword [esp + 0x170]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], eax
call fcn.004122ba
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ad24
push 0x80004005
call fcn.00401130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x16c]
cmp eax, 0x111
mov dword [esp + 0x160], ebx
ja 0x40aee2
je 0x40aec7
add eax, 0xfffffffe
cmp eax, 0xfe
ja case.0x40ad68.3
movzx ecx, byte [eax + 0x40b6c4]
jmp dword [ecx*4 + 0x40b6a8]
push 0x455454
call fcn.00401460
push 0x455458
call fcn.00401460
add esp, 8
mov edi, 0x455404
mov ebp, 0xa
push edi
call fcn.00401460
add esp, 4
add edi, 4
sub ebp, 1
jne 0x40ad90
mov edi, 0x45542c
mov ebp, 0xa
jmp 0x40adb0
push edi
call fcn.00401460
add esp, 4
add edi, 4
sub ebp, 1
jne 0x40adb0
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x40ad68.3
cmp esi, ebx
jne case.0x40ad68.16
test dword [esp + 0x18], 0x80000000
je case.0x40ad68.3
call fcn.00408060
jmp case.0x40ad68.3
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je case.0x40ad68.3
cmp dword [0x4553e4], ebx
je case.0x40ad68.3
call fcn.004058b0
cmp dword [0x455468], ebx
je case.0x40ad68.3
call 0x407680
call fcn.00405780
jmp case.0x40ad68.3
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x4c]
push edx
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
jmp case.0x40ad68.3
mov edx, dword [0x455610]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
call edi
push 6
mov ebp, eax
call edi
mov ebx, eax
call fcn.00410970
mov ecx, dword [esp + 0x44]
mov edi, eax
push 1
add edi, ebx
lea eax, [edi + ebx]
push eax
mov eax, dword [esp + 0x50]
lea edx, [ecx + ebp*2]
mov ecx, dword [0x455614]
push edx
sub eax, edi
push eax
neg ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x4553a4]
sub dword [esp + 0x48], edi
test eax, eax
je case.0x40ad68.3
mov ecx, dword [esp + 0x48]
mov edx, dword [eax]
mov edx, dword [edx + 0x9c]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
push 0
push 0
push eax
call edx
jmp case.0x40ad68.3
mov eax, dword [esp + 0x18]
push eax
push esi
push 0x111
push ebp
call fcn.0040a000
mov esi, eax
lea eax, [edi - 0x10]
jmp 0x40b65c
cmp eax, 0x117
ja 0x40b49e
je 0x40b476
sub eax, 0x113
je 0x40b370
sub eax, 3
jne case.0x40ad68.3
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 7
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
sete dl
push edx
push 8
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x3b
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x2a
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x2b
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x2c
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x2d
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x2e
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x2f
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x30
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x31
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x32
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x33
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x34
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x35
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x36
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x37
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x38
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x39
push esi
call edi
cmp dword [0x4553e4], ebx
jne 0x40b064
cmp dword [0x4553c8], ebx
je 0x40b064
xor eax, eax
jmp 0x40b069
mov eax, 1
push eax
push 0xc
push esi
call edi
mov edx, dword [0x4553f0]
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0xc
push esi
call ebp
mov eax, dword [0x4553f4]
neg eax
sbb eax, eax
and eax, 8
push eax
push 9
push esi
call ebp
xor ecx, ecx
cmp dword [0x4553f8], ebx
sete cl
push ecx
push 9
push esi
call edi
cmp dword [0x4553f0], ebx
je 0x40b0bf
cmp dword [0x4553e4], ebx
jne 0x40b0bf
xor eax, eax
jmp 0x40b0c4
mov eax, 1
push eax
push 0xd
push esi
call edi
cmp dword [0x4553e4], ebx
jne 0x40b0de
cmp dword [0x4553fc], ebx
je 0x40b0de
xor eax, eax
jmp 0x40b0e3
mov eax, 1
push eax
push 0xe
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x29
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 5
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 6
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x25
push esi
call edi
mov eax, dword [0x455468]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0xf
push esi
call ebp
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0xf
push esi
call edi
mov edx, dword [0x4553ec]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0x3a
push esi
call ebp
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x3a
push esi
call edi
cmp dword [0x4553e4], ebx
jne 0x40b188
cmp dword [0x4553f0], ebx
je 0x40b188
xor eax, eax
jmp 0x40b18d
mov eax, 1
push eax
push 0x26
push esi
call edi
xor ecx, ecx
cmp dword [0x4553d8], 0xffffffff
setne cl
sub ecx, 1
and ecx, 8
push ecx
push 0x26
push esi
call ebp
cmp dword [0x4553e4], ebx
jne 0x40b1bf
cmp dword [0x4553f0], ebx
je 0x40b1bf
xor eax, eax
jmp 0x40b1c4
mov eax, 1
push eax
push 0x27
push esi
call edi
mov edx, dword [0x4553d8]
sub edx, 1
neg edx
sbb edx, edx
and edx, 0xfffffff8
add edx, 8
push edx
push 0x27
push esi
call ebp
cmp dword [0x4553e4], ebx
jne 0x40b1f7
cmp dword [0x4553f0], ebx
je 0x40b1f7
xor eax, eax
jmp 0x40b1fc
mov eax, 1
push eax
push 0x28
push esi
call edi
mov eax, dword [0x4553d8]
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
push eax
push 0x28
push esi
call ebp
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x10
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x11
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x12
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x13
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x14
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x15
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x16
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x17
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x18
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x19
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x1a
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x1b
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x1c
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x1d
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x1e
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x1f
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x20
push esi
call edi
xor eax, eax
cmp dword [0x4553e4], ebx
setne al
push eax
push 0x21
push esi
call edi
xor ecx, ecx
cmp dword [0x4553e4], ebx
setne cl
push ecx
push 0x22
push esi
call edi
xor edx, edx
cmp dword [0x4553e4], ebx
setne dl
push edx
push 0x23
push esi
call edi
jmp case.0x40ad68.3
cmp ebp, dword [0x455610]
jne case.0x40ad68.3
cmp dword [0x4553e4], ebx
je 0x40b38d
push ebx
call fcn.00403220
add esp, 4
push 0x454f80
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call 0x409dd0
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00404310
cmp eax, 0xffffffff
je 0x40b3e5
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408320
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 1
call 0x409300
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 0
call fcn.004043a0
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40b40d
cmp dword [esp + 0x34], ebx
ja 0x40b441
jb 0x40b40d
cmp dword [esp + 0x30], 0x1d4c00
jae 0x40b441
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004058b0
cmp dword [0x455468], ebx
je 0x40b42a
call 0x407680
call fcn.00405780
mov eax, dword [0x455610]
push ebx
push str.Warning
push str.Not_enough_disk_space__capture_stopped_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [0x455564], ebx
je case.0x40ad68.3
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
sub ecx, dword [0x45546c]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, dword [0x45556c]
jb case.0x40ad68.3
jmp 0x40ae05
mov edx, dword [0x455610]
push 1
push edx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, esi
jne case.0x40ad68.3
call fcn.00405960
jmp case.0x40ad68.3
cmp eax, 0x219
je 0x40b5f2
cmp eax, 0x401
jne case.0x40ad68.3
mov eax, dword [0x4553a8]
cmp eax, ebx
je case.0x40ad68.3
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x20]
xor ebp, ebp
xor edi, edi
call eax
test eax, eax
jne case.0x40ad68.3
mov edx, dword [esp + 0x24]
mov eax, dword [0x4553a8]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x28]
cmp eax, 3
jne 0x40b51a
call fcn.004058b0
mov ebp, dword [esp + 0x1c]
mov edi, 1
jmp 0x40b55f
cmp eax, 0x1f
jne 0x40b55f
cmp dword [esp + 0x24], ebx
jne 0x40b55f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x4448a8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x40b55f
mov ecx, dword [esp + 0x20]
mov edx, dword [0x4553c4]
push ecx
push edx
call fcn.00410ec0
test eax, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
jne 0x40b5c5
call edx
mov eax, dword [0x4553a8]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
je 0x40b4e5
cmp edi, ebx
je case.0x40ad68.3
cmp dword [0x455468], ebx
je 0x40b59e
call 0x407680
call fcn.00405780
push ebp
push str.ERROR_during_capture__error_code_08x
lea edx, [esp + 0x94]
push 0x64
push edx
call fcn.00402e80
lea eax, [esp + 0x9c]
push eax
call fcn.004034e0
add esp, 0x14
jmp case.0x40ad68.3
call edx
call fcn.004058b0
push str.Stopping_Capture__Device_Lost_._Select_New_Capture_Device
push 0x64
lea eax, [esp + 0x94]
push eax
call fcn.00401300
lea ecx, [esp + 0x8c]
push ecx
call fcn.004034e0
add esp, 4
jmp case.0x40ad68.3
cmp esi, 0x8000
je 0x40b602
cmp esi, 0x8004
jne case.0x40ad68.3
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 4], 5
jne case.0x40ad68.3
mov edx, ecx
add edx, 0xc
push 0x4449a8
push edx
call fcn.00401000
add esp, 8
test eax, eax
je case.0x40ad68.3
cmp esi, 0x8000
je 0x40b633
cmp esi, 0x8004
jne case.0x40ad68.3
mov byte [0x455400], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x2c]
push eax
push esi
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x160], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b67c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0042c60f
add esp, 0x150
ret 0x10