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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x50c237
mov ebp, dword [esi + 0x94]
test ebp, ebp
je 0x50c237
mov ebx, 0x10
jmp 0x50c200
push 0x14
lea ecx, [ebp + 0x84]
dec ebx
call fcn.004fb520
mov edi, eax
test edi, edi
je 0x50c230
push edi
mov ecx, ebp
call fcn.00512fe0
mov ecx, edi
call fcn.0051c180
push edi
call fcn.0043f0a0
add esp, 4
test ebx, ebx
jne 0x50c200
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x50c1f3
mov ebx, 0x10
lea esp, [esp]
dec ebx
push 0x14
lea ecx, [esi + 0x60]
mov dword [esp + 0x64], ebx
call fcn.004fb520
mov edi, eax
test edi, edi
mov dword [esp + 0x30], edi
je 0x50cb8c
mov eax, dword [esi + 4]
test eax, eax
je 0x50ca90
push eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x6c]
call fcn.0047c4b0
mov eax, edi
movzx ecx, byte [eax + 0xb]
mov ebp, dword [eax + 0x14]
xor ebx, ebx
mov bh, byte [eax + 9]
lea edi, [esp + 0x78]
mov dword [esp + 0x14], 0
mov bl, byte [eax + 0xa]
mov eax, 2
shl ebx, 8
or ebx, ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov edx, dword [esi]
xor eax, eax
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [edx + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 8], 0x11
jne 0x50c2e2
test edi, edi
je 0x50c2e2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
cmp eax, 3
jl 0x50c2e2
mov al, byte [ebp]
inc ebp
dec ebx
test al, al
jne 0x50cab0
mov eax, dword [esi + 8]
push 0
push eax
push ebx
push ebp
push edi
lea ecx, [esp + 0x64]
call fcn.0053c460
mov ecx, dword [esp + 0x50]
cmp dword [ecx + 0x10], ebx
jge 0x50c367
mov ebp, dword [esp + 0x14]
lea edi, [esp + 0x78]
push 0
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
call fcn.004f9ec0
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
inc ebp
add edi, 4
call fcn.0046c800
cmp ebp, 0x40
lea ecx, [esp + 0x3c]
jge 0x50c356
call fcn.0046c790
mov ecx, dword [esp + 0x50]
cmp dword [ecx + 0x10], ebx
mov dword [esp + 0x3c], 0
jl 0x50c305
mov dword [esp + 0x14], ebp
jmp 0x50c367
mov dword [esp + 0x14], ebp
call fcn.0046c790
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x50]
call fcn.00539240
mov edi, dword [esp + 0x14]
cmp edi, 3
jl 0x50caf1
mov ecx, dword [esp + 0x78]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x50c396
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
mov eax, ecx
and eax, 7
cmp eax, 2
jne 0x50c3a0
and ecx, 0x1f
mov eax, ecx
cmp eax, 4
je 0x50c3ae
cmp eax, 5
jne 0x50cb31
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x60]
call fcn.0046c350
mov ecx, dword [esi + 8]
push eax
call fcn.004b6e90
mov ecx, dword [esp + 0x7c]
mov ebx, ecx
and ebx, 7
mov eax, ebx
cmp eax, 7
mov dword [esp + 0x58], 0
mov edx, ecx
jne 0x50c3f0
mov eax, ecx
and eax, 0xfffffff8
mov edx, dword [eax + 0xc]
mov eax, edx
and eax, ebx
cmp eax, 2
jne 0x50c3fa
and edx, 0x1f
mov eax, edx
test eax, eax
je 0x50c473
cmp eax, 1
je 0x50c473
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x1c]
push 0x5e534c
push edx
call fcn.0043a9e0
add esp, 8
test al, al
jne 0x50c983
mov eax, dword [esp + 0x1c]
push str._result
push eax
call fcn.0043a9e0
add esp, 8
test al, al
jne 0x50c983
mov ecx, dword [esp + 0x1c]
push str.onStatus
push ecx
call fcn.0043a9e0
add esp, 8
test al, al
je 0x50c75b
mov edx, dword [esi]
lea eax, [esp + 0x84]
push eax
push 0
push 0
push 0
push 0
mov ecx, esi
call dword [edx + 0x18]
jmp 0x50ca40
cmp ebx, 7
jne 0x50c47e
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
test cl, 7
je 0x50c48a
and ecx, 0xfffffff8
fld qword [ecx]
jmp 0x50c495
sar ecx, 3
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call fcn.004eb100
mov ebp, eax
cmp ebp, 1
mov dword [esp + 0x14], ebp
jne 0x50c409
mov ecx, dword [esi + 4]
push str.isConnected
call fcn.0049d160
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x50ca40
mov ecx, dword [esp + 0x1c]
push 0x5e534c
push ecx
call fcn.0043a9e0
add esp, 8
neg al
sbb al, al
inc al
movzx edx, al
push edx
mov ecx, ebx
call fcn.0046c960
mov eax, dword [ebx]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x50c4f9
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
test eax, 0xffffffe0
je 0x50c63e
mov ebp, dword [esi + 0x5c]
test ebp, ebp
je 0x50c60e
lea edi, [ebp + 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x3260]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x50c60a
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 2
call fcn.0046c5f0
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x50c55a
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x5dc480
and eax, 0xfffffff8
push eax
call fcn.004b1770
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push 0x44
push edx
push str.fpadInfo
call fcn.0049f350
mov ebp, eax
test ebp, ebp
je 0x50c60a
mov ecx, dword [ebp]
mov edi, dword [ebx + 4]
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x50c5a0
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
push edi
push 0x5e5334
and ecx, 0xfffffff8
call fcn.0049e190
mov ecx, dword [ebp]
mov edx, ecx
and edx, 7
cmp dl, 7
jne 0x50c5c1
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
fild dword [ebx + 0x10]
sub esp, 8
and ecx, 0xfffffff8
fstp qword [esp]
push str.port
call fcn.0049f390
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x50c60a
mov edi, edi
mov ecx, dword [ebp]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 4]
mov ebx, ecx
and ebx, 7
cmp bl, 7
jne 0x50c5f9
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
push eax
push edx
and ecx, 0xfffffff8
call fcn.0049e190
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x50c5e0
mov ebx, dword [esp + 0x18]
lea edi, [esi + 0xcc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0xe4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x224]
test ecx, ecx
je 0x50c63e
call fcn.00519a70
mov eax, dword [esi + 0xc8]
test eax, eax
jne 0x50ca40
mov eax, dword [esp + 0x84]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x50c663
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
and eax, 0xfffffff8
mov ebp, eax
je 0x50c72b
mov eax, dword [ebx]
mov edx, eax
and edx, 7
cmp dl, 7
jne 0x50c680
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
test eax, 0xffffffe0
je 0x50c72b
mov eax, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [eax + 0x1c]
test eax, eax
je 0x50c6a1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ebx, eax
push str.objectEncoding
mov ecx, ebp
xor edi, edi
call fcn.0049d160
test eax, eax
je 0x50c6ca
mov eax, dword [eax]
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x50c6c5
and eax, 0xfffffff8
mov eax, dword [eax + 0xc]
sar eax, 3
mov edi, eax
cmp ebx, edi
je 0x50c72b
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esi + 0xc8], 1
je 0x50c6f1
push 0x47
mov eax, 2
push eax
push 0x5dc270
call fcn.0049f350
mov edx, dword [esi]
push 0
push 0
push str.objectEncoding_error
push 0x5d9538
push str.NetConnection.Connect.Failed
mov ecx, esi
call dword [edx + 0x18]
mov ecx, esi
call fcn.0050ba00
mov ecx, dword [esi + 0x5c]
push 1
call fcn.004fc1b0
mov dword [esi + 0xc8], 0
jmp 0x50ca40
mov eax, dword [esi]
lea ecx, [esp + 0x84]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
mov dword [esi + 0xc8], 1
call dword [eax + 0x18]
mov dword [esi + 0xc8], 0
jmp 0x50ca40
mov eax, dword [esp + 0x1c]
xor ebx, ebx
test eax, eax
je 0x50c780
mov edx, dword [esi]
add edi, 0xfffffffd
push edi
lea ecx, [esp + 0x88]
push ecx
push eax
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call dword [edx + 8]
movzx ebx, al
test ebp, ebp
jbe 0x50c95a
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x14], 0x14
call dword [edx + 0x1c]
mov edi, eax
mov eax, dword [esi + 8]
push 0
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.0053c4f0
test edi, edi
je 0x50c7cf
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
cmp eax, 3
jl 0x50c7cf
mov ecx, dword [esp + 0x34]
push 0
add ecx, 4
mov dword [esp + 0x18], 0x11
call fcn.0051c4c0
test ebx, ebx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0
mov edi, str._result
jne 0x50c7ed
mov edi, 0x5e534c
mov ecx, dword [esi + 8]
call fcn.004a7100
push eax
mov eax, dword [esi + 8]
push edi
push eax
lea ecx, [esp + 0x34]
call fcn.004991d0
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f9ec0
test ebp, ebp
mov edx, dword [esi + 8]
mov dword [esp + 0x18], ebp
fild dword [esp + 0x18]
push edx
jge 0x50c82a
fadd qword [0x5d76d8]
sub esp, 8
lea ecx, [esp + 0x34]
fstp qword [esp]
call fcn.00499200
mov ecx, dword [esp + 0x34]
push 0
lea eax, [esp + 0x2c]
push eax
call fcn.004f9ec0
lea ecx, [esp + 0x28]
call fcn.0046c980
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f9ec0
test ebx, ebx
jne 0x50c8ea
mov edx, dword [esi + 8]
xor ebp, ebp
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], ebp
call fcn.0046ca00
mov edi, dword [esp + 0x44]
mov eax, edi
and eax, 7
cmp al, 7
jne 0x50c898
and edi, 0xfffffff8
mov edi, dword [edi + 0xc]
mov ecx, dword [esi + 8]
push ebp
push 0x5dc480
and edi, 0xfffffff8
push edi
call fcn.004b1770
push str.NetConnection.Call.Failed
push 0x5d9520
mov ecx, edi
call fcn.0049e190
push 0x5d9538
push 0x5d9528
mov ecx, edi
call fcn.0049e190
push ebp
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f9ec0
lea ecx, [esp + 0x44]
call fcn.0046c790
mov dword [esp + 0x44], ebp
jmp 0x50c91f
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 2
call fcn.0040df20
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.0046c800
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f9ec0
xor ebp, ebp
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x10]
mov ebx, dword [eax + 0xc]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0x14]
and eax, 0x7fffffff
push eax
push edi
push ebx
push edx
lea ecx, [esi + 0x60]
call fcn.004fc180
lea ecx, [esp + 0x28]
call fcn.0046c790
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebp
call fcn.00539240
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x548]
add eax, 0x530
test ecx, ecx
jbe 0x50ca40
dec ecx
mov dword [eax + 0x18], ecx
mov eax, dword [eax + 0x20]
mov dword [eax + ecx*4], 2
jmp 0x50ca40
mov eax, dword [esi + 0x10]
test eax, eax
lea ebp, [esi + 0x10]
je 0x50ca40
mov ecx, dword [esp + 0x14]
cmp dword [eax + 0x1c], ecx
je 0x50c9a6
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x50c995
jmp 0x50ca40
mov edi, dword [eax + 0x18]
test edi, edi
je 0x50ca40
mov ecx, dword [esp + 0x1c]
push str._result
push ecx
call fcn.0043a9e0
add esp, 8
lea edx, [esp + 0x84]
mov bl, al
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x60], bl
call fcn.0046c350
mov edx, dword [esp + 0x5c]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
push edi
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x50ca0b
test bl, bl
jne 0x50ca0b
mov eax, dword [esi]
lea ecx, [esp + 0x84]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
call dword [eax + 0x18]
mov eax, ebp
cmp dword [eax], 0
je 0x50ca38
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
cmp dword [ecx + 0x1c], edx
je 0x50ca27
lea eax, [ecx + 0x24]
cmp dword [eax], 0
jne 0x50ca16
jmp 0x50ca38
mov ecx, dword [eax]
test ecx, ecx
mov edx, dword [ecx + 0x24]
mov dword [eax], edx
je 0x50ca38
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043f0a0
add esp, 4
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea edi, [esp + 0x178]
mov ebx, 0x40
jmp 0x50ca70
sub edi, 4
mov ecx, edi
call fcn.0046c790
dec ebx
mov dword [edi], ebp
jne 0x50ca70
lea ecx, [esp + 0x64]
call fcn.0047b020
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x30]
mov ecx, edi
call fcn.0051c180
push edi
call fcn.0043f0a0
add esp, 4
test ebx, ebx
jne 0x50c240
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043f0a0
add esp, 4
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x178]
mov edi, 0x40
jmp 0x50cae0
sub esi, 4
mov ecx, esi
call fcn.0046c790
dec edi
mov dword [esi], ebx
jne 0x50cae0
jmp 0x50cb6f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043f0a0
add esp, 4
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x178]
mov edi, 0x40
jmp 0x50cb20
sub esi, 4
mov ecx, esi
call fcn.0046c790
dec edi
mov dword [esi], ebx
jne 0x50cb20
jmp 0x50cb6f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043f0a0
add esp, 4
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x178]
mov edi, 0x40
jmp 0x50cb60
sub esi, 4
mov ecx, esi
call fcn.0046c790
dec edi
mov dword [esi], ebx
jne 0x50cb60
lea ecx, [esp + 0x64]
call fcn.0047b020
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.0051c180
push esi
call fcn.0043f0a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret