Function at 0x40beb1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2c80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
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 0x40bd01
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bcf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf37
push edx
push ecx
call fcn.0048ab28
add esp, 8
cmp dword [edi + 0x30], 0
je case.default.0x40bd17
mov eax, dword [ebp + 8]
cmp eax, 9
ja case.default.0x40bd17
jmp dword [eax*4 + 0x40bf44]
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 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 0x40bd97
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf3c
push edx
push ecx
call fcn.0048ab28
add esp, 8
cmp dword [edi + 0x84], 6
jne case.default.0x40bd17
mov ecx, dword [edi + 0x30]
push str.option_port_usb
call fcn.0043b293
test eax, eax
je 0x40bdd2
mov edx, dword [eax]
mov ecx, eax
push 1
push 1
call dword [edx + 0x1d8]
push 0x4e8020
push 0
push ecx
mov ecx, edi
call fcn.0040afc0
mov dword [edi + 0x84], 0
jmp case.default.0x40bd17
mov ecx, edi
call fcn.0040c2b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040c4d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040c9b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040cca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040d7e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040ddd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040e0f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040e320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x2f2
push dword [edi + 0x38]
call esi
push 0
push 0
push 0x2f4
push dword [edi + 0x38]
call esi
push 0
push 0
push 0x2f6
push dword [edi + 0x38]
call esi
push 0
push 0
push 0x2f5
push dword [edi + 0x38]
call esi
push 0
push 0
push 0x40e570
push 0x40e520
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x16c], eax
test eax, eax
je case.default.0x40bd17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x16c], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004a6c47
call fcn.004a6c47
nop dword [eax]
push ds
mov ebp, -1109327808
inc eax
add bl, bh
mov ebp, 0xbe150040
inc eax
add byte [edi], ch
mov esi, 0xbe490040
inc eax
add byte [ebx - 0x42], ah
inc eax
add byte [ebp - 0x42], bh
inc eax
add byte [edi - 0x4effbf42], dl
mov esi, 0xcccc0040
int3