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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bdf60
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x30]
call fcn.00404990
lea eax, [esp + 0x30]
mov dword [esp + 0x78], 0
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0041fc90
push 1
lea edx, [esp + 0x34]
lea ecx, [esi - 0xc]
push edx
call fcn.0040e3d0
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x30]
push edx
call eax
mov edx, dword [esi + 0x74]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x74]
mov dword [esp + 0x20], vtable.AutoLock.0
mov dword [esp + 0x24], ecx
call eax
mov byte [esp + 0x78], 1
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 4]
mov ecx, 0x580d40
call eax
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 8]
mov ebx, dword [0x594960]
mov ecx, 0x580d40
call eax
mov edx, dword [ebx + 0x104]
mov eax, dword [edx + 4]
lea edi, [ebx + 0x104]
mov ecx, edi
call eax
movzx ecx, byte [ebx + 0x72]
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov byte [esp + 0x16], cl
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
movzx ecx, byte [ebx + 0x73]
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov byte [esp + 0x17], cl
mov ecx, edi
call eax
cmp byte [esp + 0x16], 0
jne 0x40d28f
cmp byte [esp + 0x17], 0
jne 0x40d267
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1a7], 0
jne 0x40d28f
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov bl, byte [ebx + 0x74]
mov ecx, edi
call eax
test bl, bl
je 0x40d304
mov edx, dword [esi - 0xc]
mov eax, dword [edx + 0x10]
lea ecx, [esi - 0xc]
call eax
mov eax, dword [esi + 0x50]
mov eax, dword [eax]
mov ebx, dword [esi + 0x3c]
lea edi, [esi + 0x3c]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x2c], ecx
test ebx, ebx
je 0x40d2af
cmp ebx, eax
je 0x40d2b4
call fcn.00480e22
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], edx
je 0x40d33b
test ebx, ebx
jne 0x40d328
call fcn.00480e22
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x14]
jne 0x40d2d7
call fcn.00480e22
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], edx
je 0x40d330
test ebx, ebx
jne 0x40d32c
call fcn.00480e22
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x14]
jne 0x40d2fc
call fcn.00480e22
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
jmp 0x40d29a
cmp dword [esi + 0x70], 0
je 0x40d28f
push str.Cannot_disconnect_existing_clients_and_therefore_the_client_will_be_disconected
lea ecx, [esp + 0x50]
push ecx
call fcn.004048f0
push 0x56e6e0
lea edx, [esp + 0x50]
push edx
call fcn.004841dc
mov eax, dword [ebx]
jmp 0x40d2c9
mov eax, dword [ebx]
jmp 0x40d2ee
push eax
push ebx
lea ebx, [esp + 0x30]
call fcn.00447480
mov edi, dword [esi + 0x6c]
mov edx, dword [edi + 4]
lea ecx, [ebp + 8]
push ecx
push edx
push edi
call fcn.00447910
lea ecx, [esi + 0x58]
mov ebx, eax
call fcn.0045dc30
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [eax], ebx
cmp dword [esi + 0x11c], edi
jne 0x40d439
cmp dword [esi + 0x70], edi
je 0x40d439
lea eax, [esi - 0xc]
cmp eax, edi
je 0x40d385
lea ecx, [esi + 4]
mov dword [esp + 0x18], ecx
jmp 0x40d389
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x40d392
lea edx, [esi - 4]
jmp 0x40d394
xor edx, edx
cmp eax, edi
je 0x40d39d
lea eax, [esi - 8]
jmp 0x40d39f
xor eax, eax
mov ebx, dword [esi + 0x12c]
mov ecx, dword [esi + 0x120]
mov edi, dword [ecx]
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push edx
mov edx, dword [edi]
push eax
call edx
mov dword [esi + 0x11c], eax
mov ebx, dword [esi + 0x30]
cmp ebx, dword [esi + 0x34]
jbe 0x40d3cc
call fcn.00480e22
mov edi, dword [esi + 0x24]
nop
mov eax, dword [esi + 0x34]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x30], eax
jbe 0x40d3e1
call fcn.00480e22
mov eax, dword [esi + 0x24]
test edi, edi
je 0x40d3ec
cmp edi, eax
je 0x40d3f1
call fcn.00480e22
cmp ebx, dword [esp + 0x18]
je 0x40d437
test edi, edi
jne 0x40d42f
call fcn.00480e22
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40d40c
call fcn.00480e22
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test edi, edi
jne 0x40d433
call fcn.00480e22
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40d42a
call fcn.00480e22
add ebx, 4
jmp 0x40d3d0
mov eax, dword [edi]
jmp 0x40d402
mov eax, dword [edi]
jmp 0x40d420
xor edi, edi
mov esi, dword [esi + 0x11c]
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], vtable.StringStorage.0
cmp eax, edi
je 0x40d468
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00480e32
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4