Function at 0x456240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47652c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x4eec64]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4e8]
mov edi, ecx
push esi
push str.Sending_to_bridge__d_n
mov dword [esp + 0x24], edi
call fcn.00402b20
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x40]
lea ebp, [esi*4]
add eax, ebp
mov eax, dword [eax]
xor ebx, ebx
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x4562c3
movzx ecx, byte [eax]
cmp ecx, 0x80
jae 0x4562c3
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x482f64
lea ecx, [esp + 0x24]
mov dword [esp + 0x4e4], ebx
call fcn.004014a0
push 1
push 0x48cac4
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], ebx
call fcn.004017a0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4e8], 1
call fcn.00401230
mov edi, dword [esp + 0x1c]
add edi, 0x28
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
mov byte [esp + 0x4e8], 2
call fcn.00401230
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x4e0], 4
cmp ecx, ebx
je 0x456362
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456351
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x44]
and eax, 0xff
cmp eax, ebx
jne 0x45635e
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x4e0], 5
cmp ecx, ebx
je 0x4563a1
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456390
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x40]
and eax, 0xff
cmp eax, ebx
jne 0x45639d
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x4c]
shr edx, 1
cmp edx, esi
ja 0x4563c9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
inc esi
push esi
add ecx, 0x48
mov dword [esp + 0x40], ebx
call fcn.0044e7e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
cmp dword [ecx + ebp], ebx
jne 0x456690
lea ecx, [esp + 0xc8]
call fcn.00402b70
push ebx
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x4ec], 6
call fcn.004190c0
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x4f4], 7
call fcn.004212a0
add esp, 0x14
push ebx
push 1
push str.unauthorized_user
lea ecx, [esp + 0x24]
call fcn.00401a30
cmp eax, 0xffffffff
je 0x456626
mov dword [esp + 0x28], ebx
mov eax, dword [edi]
mov byte [esp + 0x4e0], 8
cmp eax, ebx
je 0x456450
add eax, 4
cmp eax, ebx
jne 0x456455
mov eax, 0x48ca18
push eax
lea eax, [esp + 0x2c]
push str._username_:___s____devicetype_:_f.lux_
push eax
call fcn.00418c60
add esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x17], 1
call fcn.00402b00
mov esi, dword [sym.imp.USER32.dll_MessageBeep]
mov edi, dword [esp + 0x1c]
mov bl, 9
cmp byte [edi + 4], 0
jne 0x45653c
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x4e0], 0xa
test eax, eax
je 0x4564a9
add eax, 4
jne 0x4564ae
mov eax, 0x48ca18
push eax
push str.Posting_to__s_n
call fcn.00402b20
push str.POST
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00419220
add esp, 0x1c
push 0
push 1
push 0x483688
lea ecx, [esp + 0x30]
call fcn.00401a30
cmp eax, 0xffffffff
je 0x4565b0
push 0
call esi
push 0x3e8
mov ecx, edi
call sub.KERNEL32.dll_Sleep
cmp byte [edi + 4], 0
jne 0x45652c
lea ecx, [esp + 0x48]
call fcn.004029e0
fcomp qword [0x482ac8]
fnstsw ax
test ah, 0x41
jne 0x4565b5
mov ecx, dword [edi + 0x48]
mov dword [ecx + ebp], 0xffffffff
lea ecx, [esp + 0x24]
mov byte [esp + 0x4e0], bl
call fcn.00401080
lea ecx, [esp + 0x48]
mov byte [esp + 0x4e0], 8
call fcn.00402b20
lea ecx, [esp + 0x28]
mov byte [esp + 0x4e0], 7
call fcn.00401080
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e0], 6
call fcn.00401080
lea ecx, [esp + 0xc8]
mov byte [esp + 0x4e0], 5
call fcn.004032b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4e0], 0
call fcn.00401080
lea ecx, [esp + 0x20]
mov dword [esp + 0x4e0], 0xffffffff
call fcn.00401080
or eax, 0xffffffff
jmp 0x456c0b
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x4e0], bl
test ecx, ecx
je 0x4565f7
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x4565e2
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x24]
and eax, 0xff
test eax, eax
jne 0x4565ef
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x24], 0
cmp byte [esp + 0x17], 0
jne 0x456482
lea ecx, [esp + 0x48]
mov byte [esp + 0x4e0], 8
call fcn.00402b20
lea ecx, [esp + 0x28]
mov byte [esp + 0x4e0], 7
call fcn.00401080
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x48]
mov dword [edx + ebp], 1
call fcn.0044f270
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x4e0], 6
cmp ecx, ebx
je 0x456678
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456667
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x18]
and eax, 0xff
cmp eax, ebx
jne 0x456674
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc8]
mov byte [esp + 0x4e0], 5
call fcn.004032b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
cmp dword [ecx + ebp], 0xffffffff
jne 0x45670d
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x4e0], 0
cmp ecx, ebx
je 0x4566d8
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x4566c7
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x2c]
and eax, 0xff
cmp eax, ebx
jne 0x4566d4
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4e0], 0xffffffff
cmp ecx, ebx
je 0x456c09
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456bfc
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x456bf3
mov eax, dword [eax + 0x50]
add eax, ebp
mov eax, dword [eax]
mov byte [esp + 0x17], 0
cmp eax, ebx
je 0x456722
add eax, 4
jmp 0x456724
xor eax, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x68]
xor ecx, ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ecx
mov byte [esp + 0x4e0], 0xd
mov dword [esp + 0x5c], eax
cmp eax, ebx
je 0x456761
lea ecx, [esp + 0x58]
call fcn.0041f390
push str.lights
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x4e8], 0xe
call fcn.0044e890
test dword [esp + 0x8c], 0xfffffffe
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x4e0], 0xf
mov dword [esp + 0x28], ebx
jbe 0x456b5a
fld dword [esp + 0x4f0]
mov dword [esp + 0x48], ebx
fmul qword [0x490170]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
fldcw word [esp + 0x18]
fld dword [esp + 0x4ec]
fsub qword [0x483680]
fnstcw word [esp + 0x18]
fdiv qword [0x483678]
movzx eax, word [esp + 0x18]
or eax, 0xc00
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul qword [0x483670]
mov dword [esp + 0x30], eax
fsubr qword [0x483508]
fldcw word [esp + 0x30]
fistp qword [esp + 0x50]
mov edi, dword [esp + 0x50]
fldcw word [esp + 0x18]
nop
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x7c]
call fcn.0044d240
mov eax, dword [eax]
cmp eax, ebx
je 0x45683e
add eax, 4
jmp 0x456840
xor eax, eax
push eax
call fcn.0045c7d0
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
cmp ecx, ebx
je 0x45687e
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x45686d
push ecx
call ebp
mov ecx, dword [esp + 0x24]
and eax, 0xff
cmp eax, ebx
jne 0x45687a
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0044e960
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x4e0], 0x11
cmp eax, ebx
je 0x4568af
add eax, 4
cmp eax, ebx
jne 0x4568b4
mov eax, 0x48ca18
push esi
push eax
lea edx, [esp + 0x38]
push str._s_lights__d_state
push edx
call fcn.00418c60
add esp, 0x10
mov dword [esp + 0x34], ebx
fld dword [esp + 0x4f0]
mov eax, dword [esp + 0x1c]
fld st(0)
fld dword [eax + 0x2c]
mov byte [esp + 0x4e0], 0x13
fucompp
fnstsw ax
test ah, 0x44
jnp 0x456920
fld dword [esp + 0x4ec]
mov ecx, dword [esp + 0x1c]
fld dword [ecx + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x456920
mov edx, dword [esp + 0x38]
fstp st(0)
push edi
push edx
lea eax, [esp + 0x3c]
push str._bri_:__d__ct_:_d__on_:true
push eax
call fcn.00418c60
add esp, 0x10
jmp 0x456967
mov ecx, dword [esp + 0x1c]
fld dword [ecx + 0x2c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x456941
mov ecx, dword [esp + 0x38]
push ecx
push str._bri_:__d__on_:true
lea edx, [esp + 0x3c]
push edx
jmp 0x45695f
fld dword [esp + 0x4ec]
fld dword [ecx + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x456967
push edi
push str._ct_:_d__on_:true
lea eax, [esp + 0x3c]
push eax
call fcn.00418c60
add esp, 0xc
mov ecx, dword [esp + 0x38]
push edi
push ecx
lea edx, [esp + 0x3c]
push str._bri_:__d__ct_:_d
push edx
call fcn.00418c60
add esp, 0x10
push 0x482f3c
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x98]
call fcn.0044e890
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x4569cf
test dword [ecx], 0xffffff00
je 0x4569cf
lea edx, [ecx + 4]
test edx, edx
je 0x4569cf
cmp byte [ecx + 4], 0
je 0x4569cf
mov eax, ecx
cmp eax, ebx
je 0x4569c1
add eax, 4
cmp eax, ebx
jne 0x4569c6
mov eax, 0x48ca18
push eax
call fcn.0045c7d0
add esp, 4
lea ecx, [esp + 0xac]
call fcn.0041f2b0
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x4e0], 0x14
call fcn.00402b00
push 0x4835f8
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x4f4], 0x15
call fcn.00419220
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.00402a40
sub esp, 8
fstp qword [esp]
push esi
push edi
push str.Sent__d_to_bulb__d___.1fms__n
call fcn.00402b20
add esp, 0x14
push ebx
push 1
push str.error__503
lea ecx, [esp + 0x48]
call fcn.00401a30
cmp eax, 0xffffffff
je 0x456a5c
mov ecx, dword [esp + 0x1c]
push 0xc8
call sub.KERNEL32.dll_Sleep
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
mov dword [eax + 0x58], edi
mov byte [esp + 0x4e0], 0x14
call fcn.00402b20
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x4e0], 0x13
cmp ecx, ebx
je 0x456aaf
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456a9e
push ecx
call ebp
mov ecx, dword [esp + 0x3c]
and eax, 0xff
cmp eax, ebx
jne 0x456aab
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x4e0], 0x12
cmp ecx, ebx
je 0x456aea
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456ad9
push ecx
call ebp
mov ecx, dword [esp + 0x34]
and eax, 0xff
cmp eax, ebx
jne 0x456ae6
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x4e0], 0x10
cmp ecx, ebx
je 0x456b25
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456b14
push ecx
call ebp
mov ecx, dword [esp + 0x30]
and eax, 0xff
cmp eax, ebx
jne 0x456b21
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x90]
mov byte [esp + 0x4e0], 0xf
call fcn.0041f2b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x8c]
inc eax
shr ecx, 1
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x456820
cmp byte [esp + 0x17], 0
jne 0x456b72
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x4f0]
fstp dword [eax + 0x2c]
fld dword [esp + 0x4ec]
fstp dword [eax + 0x30]
lea ecx, [esp + 0x74]
mov byte [esp + 0x4e0], 0xe
call fcn.0041f2b0
lea ecx, [esp + 0x58]
mov byte [esp + 0x4e0], 5
call fcn.0041f2b0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x4e0], 0
cmp ecx, ebx
je 0x456bcf
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456bbe
push ecx
call ebp
mov ecx, dword [esp + 0x2c]
and eax, 0xff
cmp eax, ebx
jne 0x456bcb
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4e0], 0xffffffff
cmp ecx, ebx
je 0x456c09
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x456bfc
push ecx
call ebp
mov ecx, dword [esp + 0x20]
and eax, 0xff
cmp eax, ebx
jne 0x456c09
push ecx
call fcn.00402770
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0045c0ce
add esp, 0x4d0
ret 0xc