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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5a6008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x14], 0
push esi
xorps xmm0, xmm0
mov dword [esp + 8], ebx
push edi
movlpd qword [esp + 0x14], xmm0
lea edi, [ebx + 0x284]
mov esi, dword [ebx + 0x274]
lea ecx, [ebx + 0x288]
mov dword [ecx], 0
mov ecx, str.0.0.0.0
mov dword [edi], 0
mov byte [esp + 0x20], 0
lea eax, [esi + 0x388]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x438160
test dl, dl
je 0x43815c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x438160
add eax, 2
add ecx, 2
test dl, dl
jne 0x438140
xor eax, eax
jmp 0x438165
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4382a7
push 8
push 3
push str.RFB__03d._03d_n
mov dword [esp + 0x38], eax
xorps xmm0, xmm0
mov byte [esp + 0x3c], al
lea eax, [esp + 0x30]
push 0xd
push eax
movq qword [esp + 0x38], xmm0
call fcn.00434e50
add esp, 0x14
xor edi, edi
nop dword [eax + eax]
push str.vncClientThread::InitVersion_:_Send_protocolMsg_n
push 0
push 0x5a6c48
call fcn.0041d720
mov esi, dword [ebx + 0x26c]
add esp, 0xc
cmp dword [esi + 8], 0xffffffff
je 0x43825a
cmp byte [esi + 0x18], 0
mov ebx, 0xc
je 0x43821b
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x43821b
cmp byte [esi + 0x68], 0
je 0x4381fa
mov ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x6c]
movq xmm0, qword [esp + 0x24]
movq qword [ecx], xmm0
mov eax, dword [esp + 0x2c]
mov dword [ecx + 8], eax
add dword [esi + 0x6c], ebx
jmp 0x43825a
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0047d910
mov ebx, dword [esp + 0x10]
jmp 0x43821f
lea eax, [esp + 0x24]
push ebx
push eax
mov ecx, esi
call fcn.0047d2e0
cmp eax, ebx
jne 0x43825a
push str.vncClientThread::InitVersion_:_Send_OK_n
push 0
push 0x5a6c48
call fcn.0041d720
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x20]
add esp, 0xc
mov ecx, dword [ebx + 0x26c]
push 0xc
push eax
call fcn.0047d6f0
test eax, eax
jne 0x4382c1
push str.vncClientThread::InitVersion_:__Send_OK___Recv_OK_n
push 0
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
mov ecx, 0x7530
cmp edi, 0x7530
mov eax, edi
cmovg eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test al, al
je 0x4383ce
mov ebx, dword [esp + 0xc]
add edi, 0x3e8
jmp 0x4381a0
movq xmm0, qword [esi + 0x388]
movq qword [esp + 0x14], xmm0
mov eax, dword [esi + 0x390]
mov dword [esp + 0x1c], eax
jmp 0x4382c7
lea edi, [ebx + 0x284]
push 3
lea eax, [esp + 0x18]
push 0x593554
push eax
call fcn.0051ddd0
add esp, 0xc
test eax, eax
jne 0x4382f7
push str.vncClientThread::InitVersion_:_Keepalive_received_n
push eax
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
jmp 0x438114
push 3
lea eax, [esp + 0x18]
push 0x59358c
push eax
call fcn.0051ddd0
add esp, 0xc
test eax, eax
jne 0x4383ce
lea esi, [ebx + 0x288]
push esi
push edi
lea eax, [esp + 0x1c]
push str.RFB__03d._03d_n
push eax
call fcn.004205b0
add esp, 0x10
cmp dword [edi], 3
jne 0x4383ce
mov eax, dword [0x5b6e6c]
mov ecx, 0x592cd4
mov edx, 0x592ccc
mov eax, dword [eax + 0x7a4]
test eax, eax
mov dword [ebx + 0x280], eax
cmove ecx, edx
push ecx
push str.vncClientThread::InitVersion_:_m_ms_logon_set_to__s
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [ebx + 0x274]
add esp, 0x10
mov eax, dword [ecx]
push 0
call dword [eax + 0x78]
cmp dword [esi], 7
jl 0x4383b7
mov eax, dword [ebx + 0x26c]
cmp byte [eax + 0x18], 0
je 0x4383b7
mov ecx, dword [ebx + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x108]
cmp byte [eax + 0x21], 0
je 0x4383b7
mov eax, dword [ebx + 0x26c]
cmp dword [eax + 4], 0
je 0x4383b7
mov byte [eax + 0x19], 1
mov eax, dword [ebx + 0x26c]
mov byte [eax + 0x1a], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret