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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fe3b0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x52a51c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x52a51c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x10]
lea edi, [ebx + 0x78]
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], edi
call fcn.004c7d67
add esp, 4
test eax, eax
je 0x423d88
push eax
call fcn.004c6c6e
add esp, 4
lea eax, [esp + 0x20]
mov dword [esp + 0x78], 0
push eax
mov edx, esi
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], 0x52c6cc
call fcn.0040c770
add esp, 4
cmp dword [esp + 0x20], 0
je 0x423dc3
lea ecx, [esp + 0x20]
call fcn.00402710
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
call fcn.00407130
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebx + 0x70]
add ebx, 0x70
mov dword [esp + 0x3c], eax
mov esi, ecx
mov dword [esp + 0x2c], ebx
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x423e06
cmp dword [edx + 0x10], eax
jae 0x423dfc
mov edx, dword [edx + 8]
jmp 0x423e00
mov esi, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x423df2
cmp esi, ecx
je 0x423e13
mov dword [esp + 0x18], esi
cmp eax, dword [esi + 0x10]
jae 0x423e17
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, ecx
je 0x423e28
xor bl, bl
jmp 0x423f24
xor ebx, ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ebx
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 0x7c]
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x423eed
lea ebx, [ecx + 8]
mov eax, dword [eax + 0x10]
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
call fcn.0040c4c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 2
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
push ecx
push dword [ebp + 0xc]
cmovae eax, dword [esp + 0x54]
push dword [esp + 0x4c]
push ecx
push eax
mov ecx, ebx
call fcn.0041ce00
test al, al
jne 0x423f64
mov byte [esp + 0x78], 1
cmp dword [esp + 0x60], 0x10
jb 0x423ebf
push dword [esp + 0x4c]
call fcn.0044bc50
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.0043a220
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x423e53
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x17], 0
mov byte [esp + 0x78], 0
test ebx, ebx
je 0x423f20
or esi, 0xffffffff
lea eax, [ebx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x423f20
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
lock xadd dword [eax], esi
dec esi
jne 0x423f20
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov bl, byte [esp + 0x17]
push edi
mov dword [esp + 0x7c], 0xffffffff
call fcn.004c7d90
add esp, 4
test eax, eax
je 0x423f42
push eax
call fcn.004c6c6e
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret 0xc
push 0x10
call fcn.004c96bf
add esp, 4
test eax, eax
je 0x423f7a
mov dword [eax], vtable.gs_mgr_tcp_connection_context_t.0
jmp 0x423f7c
xor eax, eax
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.00441ba0
mov byte [esp + 0x78], 3
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
push 0
mov dword [ebx + 4], eax
call fcn.004cad29
mov dword [ebx + 0xc], edx
push ecx
mov edx, esp
mov dword [ebx + 8], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [edx], 0
mov dword [edx + 4], 0
test ebx, ebx
je 0x423fdb
lea eax, [ebx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [edx + 4]
or esi, 0xffffffff
mov dword [esp + 0x30], edx
test edx, edx
je 0x42400e
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x42400e
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [esp + 0x30]
mov edx, esi
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x42400e
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax], edx
call fcn.0040a630
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
call fcn.00434b50
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x424046
lea ecx, [ebx + 4]
mov edx, 1
lock xadd dword [ecx], edx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ebx
mov dword [esp + 0x2c], edx
mov dword [eax], ecx
test edx, edx
je 0x42407f
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x42407f
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov edx, esi
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x42407f
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x42408f
lea eax, [ebx + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov dword [ecx + 4], ebx
mov dword [esp + 0x30], edx
mov dword [ecx], eax
test edx, edx
je 0x4240cc
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x4240cc
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [esp + 0x30]
mov edx, esi
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x4240cc
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x40]
movzx eax, cl
push eax
movzx eax, ch
push eax
movzx eax, byte [esp + 0x22]
push eax
movzx eax, byte [esp + 0x27]
push eax
push ecx
push dword [esp + 0x58]
push dword [esp + 0x54]
push str.gs_mgr_connection_to_remote_0x_X__s__local_0x_X__u._u._u._u_success
push str.gs_mgr_server_t::set_up_connection_to_gs_mgr
push 0xbd
push str.d:_slaveworkspace_netdiskgamevirtualdiskservergs_mgr_server.h
push 4
call fcn.0040eb60
mov byte [esp + 0xa8], 2
add esp, 0x30
mov edx, dword [esp + 0x24]
test edx, edx
je 0x424140
lea eax, [edx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x424140
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, esi
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x424140
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x60], 0x10
jb 0x424153
push dword [esp + 0x4c]
call fcn.0044bc50
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov byte [esp + 0x17], 1
jmp 0x423ef2