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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
mov ecx, 0x8240e0
mov dword [ebp - 0x2c], esi
call fcn.0053cfb0
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4b1045
call fcn.0053bf10
mov dword [ebp - 0x24], eax
cmp byte [esi + 0x38], 0
je 0x4b1343
push ebx
lea ebx, [esi + 0x40]
push edi
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x4b1067
push str.CWSASendThread
mov ecx, eax
call fcn.0053a740
xor ecx, ecx
mov byte [esi + 0x68], 0
mov eax, dword [esi + 0x58]
test eax, eax
cmovg ecx, eax
test ecx, ecx
jne 0x4b10b8
cmp dword [0x8240e4], ecx
jne 0x4b1085
xor eax, eax
jmp 0x4b1098
lea eax, [ebp - 8]
push eax
push 1
push str.CWSASendThread____Sleep
call fcn.0053be40
add esp, 0xc
push 0xc8
lea ecx, [esi + 0x60]
mov dword [ebp - 8], eax
call fcn.0053d9e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b10b8
push eax
call fcn.0053be00
add esp, 4
mov byte [esi + 0x68], 1
mov dword [ebp - 4], 0
push 4
push 4
lea eax, [ebp - 4]
push eax
push ebx
call fcn.005402f0
add esp, 0x10
test al, al
je 0x4b132a
lock dec dword [ebx + 0x18]
mov esi, dword [ebp - 4]
mov edx, dword [esi + 8]
cmp edx, 0x7d9ce0
jne 0x4b1131
cmp dword [0x8240e4], 0
jne 0x4b10fb
xor eax, eax
jmp 0x4b110e
lea eax, [ebp - 0xc]
push eax
push 6
push str.DisconnectPlatformSocket
call fcn.0053be40
add esp, 0xc
push dword [esi]
mov dword [ebp - 0xc], eax
call fcn.004df1c0
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
je 0x4b1314
push eax
call fcn.0053be00
jmp 0x4b1311
cmp edx, 0x7d9ce1
jne 0x4b1175
cmp dword [0x8240e4], 0
jne 0x4b1153
push dword [esi]
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.004ded60
mov eax, dword [ebp - 0x10]
jmp 0x4b111b
lea eax, [ebp - 0x10]
push eax
push 6
push str.ClosePlatformSocket
call fcn.0053be40
add esp, 0xc
mov dword [ebp - 0x10], eax
push dword [esi]
call fcn.004ded60
mov eax, dword [ebp - 0x10]
jmp 0x4b111b
cmp edx, 0x7d9ce2
je 0x4b1317
mov ebx, dword [esi + 0x34]
mov edi, ebx
test ebx, ebx
jne 0x4b118d
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 4]
xor ecx, ecx
push edi
push edx
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
test ebx, ebx
push eax
mov eax, dword [esi]
setne cl
push eax
push 0x4b4ed0
lea ecx, [ecx*8 + 6]
push ecx
mov ecx, 0x7dc2e0
call fcn.004ed740
mov ecx, dword [esi + 0x14]
mov edi, eax
mov dword [edi + 0x28], ecx
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0x30], ecx
mov eax, dword [esi + 0x20]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x3c], eax
mov al, byte [esi + 0x2c]
mov byte [edi + 0x40], al
mov eax, dword [esi + 0xc]
test ebx, ebx
je 0x4b12b1
mov ecx, dword [esi + 0x30]
lea edx, [edi + 0x74]
mov dword [edx], eax
and ecx, 0x130
je 0x4b1258
cmp dword [0x8240e4], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
jne 0x4b121a
xor eax, eax
jmp 0x4b122d
lea eax, [ebp - 0x14]
push eax
push 6
push 0x6f053c
call fcn.0053be40
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edi
push eax
push 1
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call fcn.004ded20
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov esi, eax
test ecx, ecx
je 0x4b1304
push ecx
jmp 0x4b12fc
mov dword [edi + 0x78], 0x31305456
cmp dword [0x8240e4], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], eax
jne 0x4b1282
xor eax, eax
jmp 0x4b1295
lea eax, [ebp - 0x18]
push eax
push 6
push 0x6f053c
call fcn.0053be40
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push edi
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
push dword [esi]
call fcn.004ded20
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x4b12f4
cmp dword [0x8240e4], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
jne 0x4b12c7
xor eax, eax
jmp 0x4b12da
lea eax, [ebp - 0x20]
push eax
push 6
push 0x6f053c
call fcn.0053be40
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push edi
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [esi]
call fcn.004ded20
mov esi, eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
test eax, eax
je 0x4b1304
push eax
call fcn.0053be00
add esp, 4
test esi, esi
je 0x4b1314
push edi
mov dword [edi + 0x70], esi
call fcn.004b1930
add esp, 4
mov esi, dword [ebp - 4]
push 0x38
push esi
call fcn.0054d1ed
mov ebx, dword [ebp - 0x28]
add esp, 8
jmp 0x4b10c3
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0
cmp byte [esi + 0x38], 0
jne 0x4b1057
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret