Function at 0x40bf70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2c80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4ff12c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x4e8020
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00406ee0
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, edi
call fcn.0040c170
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c010
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c155
push edx
push ecx
call fcn.0048ab28
add esp, 8
push 0xd
xor eax, eax
mov dword [ebp - 0x18], 0
push str.main.btn.next
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00406ee0
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push 1
mov ecx, edi
call fcn.0040c210
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c08a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c080
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c15a
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov eax, dword [ebp + 8]
cmp eax, 3
ja case.default.0x40c096
jmp dword [eax*4 + 0x40c160]
push 0
mov ecx, edi
call fcn.0040e640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
push 0
mov ecx, edi
call fcn.0040ebf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040f2c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0x2f4
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x2f6
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x40fa10
push 0x40f9e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x170], eax
test eax, eax
je case.default.0x40c096
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x170], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.004a6c47
call fcn.004a6c47
nop
popfd
rol byte [eax], 184
rol byte [eax], 0xd3
rol byte [eax], 0xec
rol byte [eax], 0x55
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ff12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push 0
push 0
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push eax
call fcn.00405ba0
lea ecx, [ebp - 0x20]
call fcn.00421c50
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push 0x2f9
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x40c1ea
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1fb
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048aaf4
mov esp, ebp
pop ebp
ret 0xc
call fcn.004a6c47
int3