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

Disassembly:
push 0xffffffffffffffff
push 0x4bdf33
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, dword [esp + 0x74]
mov eax, dword [edi + 0x80]
mov edx, dword [eax + 4]
lea ecx, [edi + 0x80]
mov dword [esp + 0x1c], vtable.AutoLock.0
mov dword [esp + 0x20], ecx
call edx
mov dword [esp + 0x6c], 0
mov eax, dword [edi + 0x78]
mov eax, dword [eax]
mov ebp, dword [edi + 0x64]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
nop
mov esi, dword [edi + 0x78]
mov eax, dword [edi + 0x64]
test ebp, ebp
je 0x40e7de
cmp ebp, eax
je 0x40e7e3
call fcn.00480e22
cmp dword [esp + 0x18], esi
je 0x40e98e
test ebp, ebp
jne 0x40e949
call fcn.00480e22
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x40e80a
call fcn.00480e22
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 8]
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 4]
lea edi, [esi + 0x20]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ebp, dword [esi + 0x18]
mov ecx, edi
call edx
cmp ebp, 2
jne 0x40e958
lea ecx, [esp + 0x24]
call fcn.00404990
lea eax, [esp + 0x24]
push eax
push esi
mov byte [esp + 0x74], 1
call fcn.0041fc90
mov edi, dword [esp + 0x34]
cmp edi, dword [esp + 0x38]
jbe 0x40e85b
call fcn.00480e22
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40e951
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40e878
call fcn.00480e22
mov esi, dword [esi + 0x1ac]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x48]
mov ebp, vtable.StringStorage.0
push edx
mov dword [esp + 0x44], vtable.RfbClientInfo.0
mov dword [esp + 0x48], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], ebp
call fcn.00477d50
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 2
call fcn.00405d10
mov byte [esp + 0x6c], 3
mov esi, dword [ebx + 0x14]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
push esi
call fcn.0040f870
mov ecx, ebx
mov edi, eax
call fcn.0040f910
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x58]
xor esi, esi
mov dword [esp + 0x40], vtable.RfbClientInfo.0
mov dword [esp + 0x48], ebp
cmp eax, esi
je 0x40e8fb
push eax
call fcn.00480e32
add esp, 4
mov edx, dword [esp + 0x4c]
push edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.00480e32
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x24], ebp
cmp eax, esi
je 0x40e92e
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00480e32
add esp, 4
jmp 0x40e95a
mov eax, dword [ebp]
jmp 0x40e7fc
mov eax, dword [eax]
jmp 0x40e86e
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x40e98a
call fcn.00480e22
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x14]
jne 0x40e977
call fcn.00480e22
mov ecx, dword [esi]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jmp 0x40e7d0
mov eax, dword [eax]
jmp 0x40e969
mov dword [esp + 0x6c], 0xffffffff
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x60
ret 4