Function at 0x4bf190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc522
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xb9c], 0
jne 0x4bf4a5
cmp byte [ebp + 8], 1
je 0x4bf2f2
push 0x650a3c
mov edx, str.DeviceChange
lea ecx, [ebp - 0x3d4]
call fcn.004db870
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [edi + 4]
mov eax, dword [eax]
mov ebx, dword [0x6b92e0]
mov dword [ebp - 0x3d0], eax
test esi, esi
je 0x4bf2cd
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bf2cd
push 0x308
lea eax, [ebp - 0x3b4]
push 0
push eax
call fcn.00588800
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.00588800
add esp, 0x18
mov dword [ebp - 0x3c8], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x3b4]
mov dword [ebp - 0x3cc], 0x3bc
mov dword [ebp - 0x3c4], 1
push 0x80
push ebx
push eax
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x3c0], 0x13
mov dword [ebp - 0xac], 0x3e8
mov dword [ebp - 0x3bc], 0x404
call esi
push 0x100
push dword [ebp - 0x3d0]
lea eax, [ebp - 0x2ac]
push eax
call esi
push 0x40
push ebx
lea eax, [ebp - 0xa8]
push eax
call esi
lea eax, [ebp - 0x3cc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x3d4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bf2f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x6b0c54], 1
jne 0x4bf376
mov eax, dword [edi + 0xb94]
test eax, eax
je 0x4bf376
cmp dword [edi + 0xa7c], 0
je 0x4bf376
push 0
lea ecx, [ebp - 0x3d4]
push ecx
push 0
push 0
push 0
push 0
push 0x2d4800
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4bf376
mov esi, dword [edi + 0xb94]
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [edi + 0xa38]
push eax
call fcn.0052e140
mov dword [edi + 0xb94], eax
cmp eax, 0xffffffff
jne 0x4bf36f
mov dword [edi + 0xb94], esi
jmp 0x4bf376
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0xb9c]
lea ecx, [ebp - 0x3d8]
push 0
mov dword [ebp - 0x3d0], eax
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::constructor_struct_HWND____]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3d0], 0
je 0x4bf421
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3d0]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x4bf421
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x3f8]
push eax
call esi
test eax, eax
je 0x4bf40c
lea eax, [ebp - 0x3f8]
push eax
call ebx
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3f8]
push eax
call esi
test eax, eax
jne 0x4bf3e1
lea ecx, [ebp - 0x3d8]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::Restore_void_]
cmp dword [ebp - 0x3d0], 0
jne 0x4bf3b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d8]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWaitCursor::destructor_void_]
lea eax, [ebp - 0x3dc]
push eax
push 0
push edi
push 0x4b0760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [ebp + 8], 1
mov dword [edi + 0xb9c], eax
je 0x4bf4a5
push 0x3ac
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.00588800
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [ebp - 0x3c8], eax
lea eax, [ebp - 0x3cc]
mov dword [ebp - 0x3cc], 0x3bc
mov dword [ebp - 0x3c4], 1
push eax
push 2
mov dword [ebp - 0x3c0], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4