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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49a199
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov ebx, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
push str.._vncserver.cpp_:_AddClient___started_n
xor ecx, ecx
mov eax, 0x4bc990
mov dword [esp + 0x20], edx
call fcn.00401110
add esp, 4
lea edi, [ebx + 8]
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x140], 0
movzx eax, word [ebx + 0x314]
movzx ecx, ax
mov edi, edi
movsx ecx, cx
inc ecx
and ecx, 0x8000007f
jns 0x44c151
dec ecx
or ecx, 0xffffff80
inc ecx
movzx esi, cx
mov dword [esp + 0x10], esi
cmp si, ax
je 0x44c16e
movsx edx, si
cmp dword [ebx + edx*4 + 0x114], 0
je 0x44c18d
mov ecx, esi
jmp 0x44c140
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x44c17e
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x44c476
push 0x4dc
call fcn.0047c463
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x140], 1
test eax, eax
je 0x44c1b4
push eax
call fcn.0041a980
mov edi, eax
jmp 0x44c1b6
xor edi, edi
mov byte [esp + 0x140], 0
test edi, edi
jne 0x44c1e5
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x44c1d2
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x44c476
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44c1ff
mov ecx, dword [eax]
mov dword [edi + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x20], edx
mov eax, dword [eax + 8]
mov dword [edi + 0x24], eax
jmp 0x44c211
mov ecx, dword [str.0.0.0.0]
mov dword [edi + 0x1c], ecx
mov edx, dword [0x4ab114]
mov dword [edi + 0x20], edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push ecx
mov ecx, edi
call edx
mov ecx, dword [ebx + 0x70]
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, edi
call edx
mov ecx, dword [ebx + 0x70]
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, edi
call edx
cmp dword [ebx + 0x78], 0
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
setne cl
movzx edx, cl
push edx
mov ecx, edi
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x44c25f
mov esi, eax
call fcn.0044ae70
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44c272
mov esi, eax
call fcn.0044aec0
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx]
push esi
push eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x100], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push ebx
mov ecx, edi
call edx
test eax, eax
jne 0x44c2cc
push str.._vncserver.cpp_:_failed_to_initialise_client_object_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push edi
call fcn.0041ad10
push edi
call fcn.0047c43d
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x44c476
movsx ecx, si
mov dword [ebx + ecx*4 + 0x114], edi
mov edi, dword [ebx + 0xf0]
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.00450cc0
lea ecx, [ebx + 0xdc]
mov esi, eax
call fcn.00450d00
mov dword [edi + 4], esi
mov ecx, dword [esi + 4]
push 0
mov dword [ecx], esi
mov edx, dword [ebx]
mov eax, dword [edx + 0x98]
push 0
push 0x8002
mov ecx, ebx
call eax
push str.._vncserver.cpp_:_AddClient___done_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
cmp dword [0x4f37b4], 0
je 0x44c466
mov ecx, 6
mov esi, str.Waiting_for_connection...
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xf0]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ecx]
mov edi, dword [ebx + 0xdc]
mov esi, dword [ebx + 0xf0]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xdc]
test edi, edi
je 0x44c372
cmp edi, eax
je 0x44c377
call fcn.0047d091
cmp dword [esp + 0x18], esi
je 0x44c43b
test edi, edi
jne 0x44c3dc
call fcn.0047d091
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x44c39a
call fcn.0047d091
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x48]
push edx
mov ecx, ebx
call eax
mov esi, dword [eax + 0xf8]
test esi, esi
je 0x44c3e0
mov edx, esi
lea ecx, [edx + 1]
mov dword [esp + 0x1c], ecx
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x44c3c0
sub edx, dword [esp + 0x1c]
je 0x44c3e0
push 0xffffffffffffffff
push esi
push 0xff
lea edx, [esp + 0x38]
push edx
jmp 0x44c3f6
mov eax, dword [edi]
jmp 0x44c38c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
push 0xffffffffffffffff
call eax
push eax
push 0xff
lea ecx, [esp + 0x38]
push ecx
call fcn.0047ff14
add esp, 0x10
push 0xffffffffffffffff
push 0x4ab608
lea edx, [esp + 0x34]
push 0xff
push edx
call fcn.0047ff14
add esp, 0x10
test edi, edi
jne 0x44c437
call fcn.0047d091
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x14]
jne 0x44c430
call fcn.0047d091
mov eax, dword [esi]
jmp 0x44c35a
mov eax, dword [edi]
jmp 0x44c422
cmp dword [ebx + 0xf4], 0
jbe 0x44c466
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
jmp 0x44c450
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c450
sub eax, edx
mov byte [esp + eax + 0x2a], cl
lea eax, [esp + 0x2c]
call fcn.00440850
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret 0x20