Function at 0x403ac8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 8], 0x7d3
jne 0x403bd5
cmp dword [edi + 0x1c], 8
jne 0x403bd5
mov eax, dword [edi + 0x14]
and eax, 1
cmp eax, 1
jne 0x403bd5
cmp dword [0x4fe8e0], 0
jne 0x403b51
push 0x28
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x28]
push eax
push 0
push 0x102d
push dword [0x40b6db]
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1006
push dword [0x40b6db]
call sub.user32.dll_SendMessageA
mov eax, dword [edi + 0xc]
mov dword [0x4fe8e0], eax
inc dword [0x4fe8ec]
cmp dword [0x4fe8ec], 2
je 0x403b75
cmp dword [0x4fe8f0], 1
jne 0x403b73
jmp 0x403b75
jmp 0x403bd5
mov dword [0x4fe8f0], 0
mov dword [0x4fe8ec], 0
mov dword [0x4a92c0], 1
mov dword [0x4a92bc], 0
push 0
push 0
push 0x102a
push dword [0x40b6db]
call sub.user32.dll_SendMessageA
cmp dword [0x4a92c0], 0
jne 0x403bd0
push 0
push word [0x4aa022]
push dword [0x4aa012]
call sub.kernel32.dll_TerminateThread
jmp 0x403bd5
call fcn.004049de
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
cmp eax, 0xfffffff4
jne 0x403ddd
mov eax, dword [edi + 0xc]
cmp eax, 1
jne 0x403c09
push 0x20
push 0
push dword [0x40b6f6]
call sub.user32.dll_SetWindowLongA
mov eax, 0x20
leave
ret 8
cmp eax, 0x10001
jne 0x403c36
push 0x20
push 0
push dword [0x40b6f6]
call sub.user32.dll_SetWindowLongA
mov eax, 1
leave
ret 8
cmp eax, 0x30001
jne 0x403ddd
cmp dword [ebp + 8], 0x7d3
jne 0x403c82
mov eax, dword [0x4fe8e0]
cmp dword [edi + 0x24], 0
jne 0x403c63
cmp dword [0x4fe8e0], 0
je 0x403c63
jmp 0x403db7
cmp dword [edi + 0x24], eax
jne 0x403c7d
mov dword [edi + 0x30], 0xffffff
mov dword [edi + 0x34], 0xfc033c
jmp 0x403dce
jmp 0x403db7
cmp dword [ebp + 8], 0x7d1
je 0x403c8f
leave
ret 8
cmp dword [edi + 0x38], 0
jbe 0x403d43
cmp dword [edi + 0x38], 0xb
jae 0x403d43
push dword [edi + 0x24]
pop dword [ebp - 0x24]
push dword [edi + 0x38]
pop dword [ebp - 0x20]
mov dword [0x45eb85], 1
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x24]
push 0x102d
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov ebx, 0x459b35
movzx eax, word [ebp - 0x128]
cmp al, 0
je 0x403db7
cmp ah, 0
ja 0x403d2f
sub al, 0x31
mov edx, dword [ebx + eax*8]
mov dword [edi + 0x34], edx
cmp al, 2
jne 0x403d13
mov dword [edi + 0x30], 0xffffff
jmp 0x403dce
cmp al, 8
jne 0x403d23
mov dword [edi + 0x30], 0xffffff
jmp 0x403dce
mov dword [edi + 0x30], 0
jmp 0x403dce
mov edx, dword [ebx + 0x48]
mov dword [edi + 0x34], edx
mov dword [edi + 0x30], 0xffffff
jmp 0x403dce
cmp dword [edi + 0x38], 0xb
jbe 0x403db7
cmp dword [edi + 0x38], 0xe
jae 0x403db7
push dword [edi + 0x24]
pop dword [ebp - 0x24]
push dword [edi + 0x38]
pop dword [ebp - 0x20]
mov dword [0x45eb85], 1
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x100
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x24]
push 0x102d
push dword [0x40b6d3]
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x128]
and eax, 0xffff
cmp eax, 0xabcb
jne 0x403da7
mov dword [edi + 0x30], 0xd3af2
jmp 0x403dce
cmp eax, 0xf3b4
jne 0x403db7
mov dword [edi + 0x30], 0xd3af2
jmp 0x403dce
mov dword [edi + 0x34], 0xffffff
mov dword [edi + 0x30], 0
mov eax, 0
leave
ret 8
push 2
push 0
push dword [0x43e321]
call sub.user32.dll_SetWindowLongA
leave
ret 8