Function at 0x415b60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4577a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea edi, [ebp + 0x5f8]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x120], ebx
call fcn.0042bfd0
cmp eax, 1
jne 0x415f4a
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Driver_option_is_enabled_n
push ebx
push 0x4721bc
call fcn.004070e0
mov ecx, dword [ebp + 0x5f4]
add esp, 0xc
cmp ecx, ebx
je 0x415cc2
call fcn.00408e30
test eax, eax
je 0x415cb3
mov ecx, dword [ebp + 0x5f4]
lea eax, [esp + 0x18]
push 0xfe
push eax
push str.vncdrv.dll
call fcn.00409110
test eax, eax
je 0x415cb3
mov edi, str.1.00.18
lea esi, [esp + 0x18]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x415c12
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jge 0x415caf
mov edx, dword [ebp + 0xe4]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push 0x415b40
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Wrong_driver_version_n
push ebx
push 0x4721bc
call fcn.004070e0
mov esi, dword [ebp + 0x5f4]
add esp, 0xc
cmp esi, ebx
je 0x415c68
mov ecx, esi
call fcn.00408660
push esi
call fcn.00447e1a
add esp, 4
mov ecx, dword [ebp + 0xdc]
mov dword [ebp + 0x5f4], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x61c], 1
mov eax, dword [ecx]
push ebx
call dword [eax + 0xbc]
mov ecx, dword [ebp + 0xdc]
push 1
mov edx, dword [ecx]
call dword [edx + 0xc4]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x415f56
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x5f4]
cmp dword [ecx + 8], ebx
jne 0x415f4a
push 0x28
call fcn.0044826c
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x120], 1
je 0x415ce5
mov ecx, eax
call fcn.00408620
jmp 0x415ce7
xor eax, eax
mov ecx, eax
mov byte [esp + 0x120], bl
mov dword [ebp + 0x5f4], eax
call fcn.00408e30
test eax, eax
je 0x415ddf
mov ecx, dword [ebp + 0x5f4]
lea edx, [esp + 0x18]
push 0xfe
push edx
push str.vncdrv.dll
call fcn.00409110
test eax, eax
je 0x415ddf
mov edi, str.1.00.18
lea esi, [esp + 0x18]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x415d3e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jge 0x415ddb
mov ecx, dword [ebp + 0xe4]
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push 0x415b40
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Wrong_driver_version_n
push ebx
push 0x4721bc
call fcn.004070e0
mov esi, dword [ebp + 0x5f4]
add esp, 0xc
cmp esi, ebx
je 0x415d94
mov ecx, esi
call fcn.00408660
push esi
call fcn.00447e1a
add esp, 4
mov ecx, dword [ebp + 0xdc]
mov dword [ebp + 0x5f4], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x61c], 1
mov edx, dword [ecx]
push ebx
call dword [edx + 0xbc]
mov ecx, dword [ebp + 0xdc]
push 1
mov eax, dword [ecx]
call dword [eax + 0xc4]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x415f56
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x5f4]
call fcn.00409010
test eax, eax
je 0x415e03
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Use_active_Mirror_driver_n
push ebx
push 0x4721bc
call fcn.004070e0
add esp, 0xc
jmp 0x415e21
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Start_Mirror_driver_n
push ebx
push 0x4721bc
call fcn.004070e0
mov ecx, dword [ebp + 0x5f4]
add esp, 0xc
call fcn.00408920
mov ecx, dword [ebp + 0x5f4]
call fcn.00408790
mov edx, dword [ebp + 0x5f4]
mov dword [ebp + 0x90], 1
mov dword [ebp + 0x61c], ebx
cmp dword [edx + 8], ebx
jne 0x415ecb
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Start_Mirror_driver_Failed_n
push ebx
push 0x4721bc
call fcn.004070e0
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Using_non_driver_mode_n
push ebx
push 0x4721bc
call fcn.004070e0
mov esi, dword [ebp + 0x5f4]
add esp, 0x18
cmp esi, ebx
je 0x415e88
mov ecx, esi
call fcn.00408660
push esi
call fcn.00447e1a
add esp, 4
mov ecx, dword [ebp + 0xdc]
mov dword [ebp + 0x5f4], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x61c], 1
mov eax, dword [ecx]
push ebx
call dword [eax + 0xbc]
mov ecx, dword [ebp + 0xdc]
push 1
mov edx, dword [ecx]
call dword [edx + 0xc4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x415f56
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Driver_Used_n
push ebx
push 0x4721bc
call fcn.004070e0
mov eax, dword [ebp + 0x5f4]
add esp, 0xc
cmp dword [eax + 8], ebx
jne 0x415f37
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Unable_to_map_memory_n
push ebx
push 0x4721bc
call fcn.004070e0
mov esi, dword [ebp + 0x5f4]
add esp, 0xc
cmp esi, ebx
je 0x415f16
mov ecx, esi
call fcn.00408660
push esi
call fcn.00447e1a
add esp, 4
push edi
mov dword [ebp + 0x5f4], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x61c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x415f56
push str.C:c_sourceforgeultravncwinvncwinvnc_vncdesktop.cpp_:_Shared_memory_mapped_n
push ebx
push 0x4721bc
call fcn.004070e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret