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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
cmp dword [edx], 0
mov esi, ecx
je 0x4c034b
mov word [esi], 0xc01
jmp 0x4c0825
mov ebx, dword [esp + 0x9c]
mov edi, edx
lea eax, [ebx + 0xc]
lea ebp, [ebx + 0x10]
mov dword [esp + 0x74], eax
push ebp
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x4c07c4
xor eax, eax
movzx ecx, byte [ebx + 0x14]
test cl, cl
jne 0x4c07d7
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x60], al
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4c03a0
mov ecx, dword [ebx + 0x1c]
mov ecx, dword [ecx + edx*4 - 4]
mov ecx, dword [ecx]
cmp ecx, 0x21
jb 0x4c03cf
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x64], eax
lea eax, [ebx + 0x18]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x1c]
push eax
call fcn.004c09c0
add esp, 4
movzx ebx, byte [esp + 0x1c]
cmp bl, 4
jne 0x4c065c
mov ebx, dword [esp + 0x9c]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4c08b1
mov ecx, dword [ebx + 0x1c]
mov dword [esp], esi
mov eax, dword [ecx + eax*4 - 4]
lock inc dword [eax]
jle 0x4c08af
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0x5c]
cmp byte [esp + 0x60], 0
mov dword [esp + 0x64], eax
jne 0x4c0413
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x4c087c
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
lea esi, [esp + 0x1c]
lea ebx, [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
push 0
push 0
push esi
push 4
push ebx
push 0
push 0
push 0x48000022
push ebp
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x4c0698
mov esi, dword [esp + 4]
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x60
call fcn.0071ee80
test eax, eax
je 0x4c096f
mov ecx, dword [esp + 0x64]
mov ebp, eax
mov ebx, eax
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [eax + 0xc], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
add ebp, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x50], 0
mov word [ebx + 0x58], 0
push ebp
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x4c0830
movzx eax, byte [ebx + 0xc]
test al, al
jne 0x4c097e
mov eax, dword [esp + 0xa0]
mov dword [ebx + 0x50], 0x19d
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], eax
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x4c0866
push ebp
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x9c]
lock inc dword [eax]
jle 0x4c08af
lock inc dword [ebx]
jle 0x4c08af
mov esi, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
mov edx, ebx
lea ebp, [esi + 8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 3
mov dword [esp + 0x20], ebx
mov ecx, ebp
call fcn.004c0130
movzx eax, byte [esi + 0x3c]
test al, al
je 0x4c05c8
lea ecx, [esp + 4]
mov edx, ebp
call fcn.004bef40
movzx ebx, byte [esp + 4]
cmp bl, 4
jne 0x4c06df
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movq xmm0, qword [esp + 0x24]
test ebp, ebp
je 0x4c0724
movdqu xmmword [esp + 0x64], xmm0
xor ecx, ecx
mov edx, 0x10
movzx eax, byte [0x94bfc5]
call fcn.0071ee80
test eax, eax
je 0x4c09a6
movdqu xmm0, xmmword [esp + 0x64]
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov esi, eax
movq qword [eax + 8], xmm0
mov ebp, dword [edi]
test ebp, ebp
je 0x4c064f
mov ecx, dword [ebp + 4]
lea ebx, [ebp + 4]
call fcn.004c0200
mov eax, dword [ebp]
lock dec dword [eax]
jne 0x4c0631
mov ecx, ebp
call fcn.004a90a0
mov eax, dword [ebx]
lock dec dword [eax]
jne 0x4c063f
mov ecx, ebx
call fcn.004a9200
push dword [edi]
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp]
mov dword [edi], esi
mov byte [eax], 4
jmp 0x4c0825
movzx eax, byte [esp + 0x1f]
movzx edi, word [esp + 0x1d]
mov ecx, dword [esp + 0x20]
shl eax, 0x10
mov dword [esp], ecx
or edi, eax
cmp byte [esp + 0x64], 0
jne 0x4c0689
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x4c0892
push ebp
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ebp, dword [esp]
jmp 0x4c0818
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, ebx
mov ebx, ebp
mov ebp, eax
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
push 0
push 0
push esi
push 4
push ecx
push 0
push 0
push 0x4800001c
push ebx
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x4c0732
mov esi, dword [esp + 4]
cmp esi, ebx
jne 0x4c0457
jmp 0x4c0738
mov ecx, dword [esp + 0x20]
movzx esi, byte [esp + 7]
movzx edi, word [esp + 5]
mov ebp, dword [esp + 8]
call fcn.004c0200
mov eax, dword [esp + 0x1c]
lock dec dword [eax]
jne 0x4c0708
lea ecx, [esp + 0x1c]
call fcn.004a90a0
mov eax, dword [esp + 0x20]
shl esi, 0x10
lock dec dword [eax]
jne 0x4c071d
lea ecx, [esp + 0x20]
call fcn.004a9200
or edi, esi
jmp 0x4c0815
mov edi, ebx
movd ebp, xmm0
shr edi, 8
jmp 0x4c0815
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x4800001d
push ebx
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x4c077b
mov esi, dword [esp + 4]
cmp esi, ebx
jne 0x4c0457
jmp 0x4c0781
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x4800001b
push ebx
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x4c07fd
mov esi, dword [esp + 4]
cmp esi, ebx
jne 0x4c0457
jmp 0x4c0803
call fcn.007d1b30
xor al, 1
movzx ecx, byte [ebx + 0x14]
test cl, cl
je 0x4c0383
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x20], al
lea eax, [esp + 0x1c]
mov ecx, 0x93b384
mov edx, 0x2b
push 0x84cf5c
push 0x84ca98
push eax
call fcn.007c1f60
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x64]
lock dec dword [ecx]
jne 0x4c0811
call fcn.004a92d0
xor edi, edi
xor ebx, ebx
mov esi, dword [esp]
shl edi, 8
movzx eax, bl
or eax, edi
mov dword [esi], eax
mov dword [esi + 4], ebp
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.007d1b30
movzx ecx, byte [ebx + 0xc]
test cl, cl
jne 0x4c09b5
mov ecx, dword [esp + 0xa0]
test al, al
mov dword [ebx + 0x50], 0x19d
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], ecx
jne 0x4c054c
jmp 0x4c055c
call fcn.007d1b30
test al, al
jne 0x4c055c
mov byte [ebx + 0xc], 1
jmp 0x4c055c
call fcn.007d1b30
test al, al
jne 0x4c0413
mov byte [esi + 4], 1
jmp 0x4c0413
call fcn.007d1b30
test al, al
jne 0x4c0689
mov eax, dword [esp + 0x9c]
mov byte [eax + 0x14], 1
jmp 0x4c0689
ud2
lea eax, [esp + 0x74]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x1c]
mov dword [esp + 4], 0x84cfb8
mov dword [esp + 8], 2
mov dword [esp + 0x1c], 2
mov dword [esp + 0x24], 2
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 4
mov byte [esp + 0x38], 3
mov dword [esp + 0x3c], 2
mov dword [esp + 0x44], 2
mov dword [esp + 0x4c], 0x20
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 4
mov byte [esp + 0x58], 3
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x4c0bb0
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 2
mov edx, 0x84cfc8
mov dword [esp + 0x84], 0x4c0c70
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], 2
call fcn.007c1b50
mov ecx, 8
mov edx, 0x60
call fcn.007c1490
xor eax, eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x20], al
mov ecx, 0x93b384
mov edx, 0x2b
push 0x84d0a8
push 0x84caa8
lea eax, [esp + 0x24]
push eax
call fcn.007c1f60
mov ecx, 4
mov edx, 0x10
call fcn.007c1490
xor al, 1
jmp 0x4c0980