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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov esi, esp
mov dword [esi + 0xb8], ebp
movzx eax, byte [ebp + 0x18]
mov dword [esi + 0xbc], esp
mov dword [esi + 0xc8], 0xffffffff
mov dword [esi + 0xc4], 0x557060
mov dword [esi + 4], 0
mov ecx, dword fs:[0]
mov edx, eax
mov dword [esi + 0x9c], eax
lea eax, [esi + 0xc0]
mov dword [esi + 0xc0], ecx
mov dword fs:[0], eax
xor ecx, ecx
test dl, 1
mov eax, 0x89
mov byte [esi + 0xf], dl
cmove eax, ecx
mov dword [esi + 0x98], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
lea edi, [ebx + 0xc]
lea eax, [ebx + 0x10]
mov dword [esi + 0xa4], edi
mov dword [esi + 8], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x69b824]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x5568f6
movzx eax, byte [ebx + 0x14]
test al, al
jne 0x55690c
mov eax, dword [esi + 8]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov byte [esi + 0x34], al
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x55645d
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + eax*4 - 4]
mov eax, dword [eax]
cmp eax, 0x21
jb 0x556489
mov edx, dword [edi]
lea eax, [ebx + 0x18]
mov dword [esi + 0xc8], 1
lea ecx, [esi + 0x38]
push eax
call fcn.00556200
add esp, 4
jmp 0x556479
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x18]
mov dword [esi + 0xc8], 1
lea ecx, [esi + 0x38]
push eax
call fcn.00556200
add esp, 4
movzx ecx, byte [esi + 0x38]
cmp cl, 4
jne 0x5566fc
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5569b1
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + eax*4 - 4]
mov dword [esi + 4], eax
lock inc dword [eax]
jle 0x5569ad
mov edi, dword [esi + 0x30]
cmp byte [esi + 0x34], 0
jne 0x5564cc
mov eax, dword [0x69b824]
mov eax, dword [eax]
mov dword [esi + 0xc8], 0xffffffff
test eax, 0x7fffffff
jne 0x556974
mov dword [esi + 0xc8], 0xffffffff
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 4]
mov dword [esi + 0x18], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0xc8], 2
lea ecx, [esi + 0x18]
mov dword [esi + 0xa8], eax
lea eax, [esi + 0x38]
push 0
push 0
push eax
push 4
push ecx
push 0
push 0
push 0x48000022
push dword [ebp + 0x10]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x55675f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
mov word [esi + 0x90], 0
mov dword [esi + 0x40], 0
mov byte [esi + 0x44], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], eax
mov dword [esi + 0x38], 1
mov dword [esi + 0x3c], 1
movzx eax, byte [0x69b8b9]
push 8
push 0x60
call fcn.00407070
add esp, 8
test eax, eax
je 0x556a70
mov edi, eax
push 0x60
lea eax, [esi + 0x38]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 0xa0], edi
mov dword [esi + 4], edi
add edi, 8
mov dword [esi + 0xc8], 4
mov dword [esi + 8], edi
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x69b824]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x5567b2
call fcn.0059fdf0
xor al, 1
mov edi, dword [esi + 4]
movzx ecx, byte [edi + 0xc]
test cl, cl
jne 0x5567c3
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
add ecx, ecx
and ecx, 4
or edx, ecx
mov ecx, dword [ebp + 0x14]
or edx, 0x110
test al, al
mov dword [edi + 0x50], edx
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], ecx
je 0x5567f8
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 0x10]
lock inc dword [eax]
jle 0x5569ad
mov edx, dword [esi + 4]
lock inc dword [edx]
jle 0x5569ad
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
mov dword [esi + 0xc8], 6
mov dword [esi + 0x40], ecx
movzx ecx, byte [esi + 0xf]
mov byte [esi + 0x44], cl
lea ecx, [eax + 8]
mov dword [esi + 0x3c], edx
mov dword [esi + 8], ecx
call fcn.00556df0
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x3c]
test al, al
je 0x5566e1
mov edx, dword [esi + 8]
lea ecx, [esi + 0x18]
call fcn.00555790
movzx eax, byte [esi + 0x18]
cmp al, 4
jne 0x556823
movsd xmm0, qword [esi + 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [esi + 0x40]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x55684f
movzx eax, byte [esi + 0x3b]
movzx ebx, word [esi + 0x39]
mov edx, dword [esi + 0x3c]
mov edi, ecx
shl eax, 0x10
mov dword [esi + 0x14], edx
or ebx, eax
cmp byte [esi + 4], 0
jne 0x556729
mov eax, dword [0x69b824]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x55698a
mov dword [esi + 0xc8], 0xffffffff
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x14]
mov byte [eax + 4], cl
mov word [eax + 5], bx
shr ebx, 0x10
mov byte [eax + 7], bl
mov dword [eax + 8], edx
mov dword [eax], 0
jmp 0x55684f
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x38], 0
push 0
push 0
lea eax, [esi + 0x38]
push eax
push 4
lea eax, [esi + 0x18]
push eax
push 0
push 0
push 0x4800001c
push dword [ebp + 0x10]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x556864
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jne 0x55652a
jmp 0x55686d
xor eax, eax
mov edi, dword [esi + 4]
movzx ecx, byte [edi + 0xc]
test cl, cl
je 0x556645
mov ecx, dword [esi + 8]
mov dword [esi + 0xc8], 5
mov dword [esi + 0x38], ecx
mov byte [esi + 0x3c], al
push 0x63c76c
push 0x63c384
lea eax, [esi + 0x38]
push eax
push 0x2b
push 0x63c338
call fcn.005a0ed0
add esp, 0x14
jmp 0x556a86
mov eax, dword [0x69b824]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x556676
call fcn.0059fdf0
test al, al
jne 0x556676
mov eax, dword [esi + 4]
mov byte [eax + 0xc], 1
jmp 0x556676
mov ecx, dword [esi + 0x19]
mov edx, dword [esi + 0x1c]
mov edi, dword [ebp + 8]
mov dword [esi + 0xc8], 0xffffffff
mov dword [edi + 8], edx
mov dword [edi + 5], ecx
lea ecx, [esi + 0x38]
mov byte [edi + 4], al
mov dword [edi], 0
call fcn.00554a90
mov eax, edi
mov ecx, dword [esi + 0xc0]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x38], 0
push 0
push 0
lea eax, [esi + 0x38]
push eax
push 4
lea eax, [esi + 0x18]
push eax
push 0
push 0
push 0x4800001d
push ecx
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x5568ae
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jne 0x55652a
jmp 0x5568b7
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x38], 0
push 0
push 0
lea eax, [esi + 0x38]
push eax
push 4
lea eax, [esi + 0x18]
push eax
push 0
push 0
push 0x4800001b
push ecx
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x556944
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 0x10]
jne 0x55652a
jmp 0x55694a
call fcn.0059fdf0
xor al, 1
mov dword [esi + 4], eax
movzx eax, byte [ebx + 0x14]
test al, al
je 0x55641c
mov eax, dword [esi + 8]
mov dword [esi + 0xc8], 0
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
mov byte [esi + 0x3c], al
lea eax, [esi + 0x38]
push 0x63c598
push 0x63c364
push eax
push 0x2b
push 0x63c338
call fcn.005a0ed0
add esp, 0x14
jmp 0x556a86
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x55696b
lea eax, [esi + 0xa8]
mov dword [esi + 0xc8], 0xffffffff
push eax
call fcn.00401be0
add esp, 4
xor ebx, ebx
xor ecx, ecx
jmp 0x55673e
call fcn.0059fdf0
test al, al
jne 0x5564cc
mov byte [edi + 4], 1
jmp 0x5564cc
mov dword [esi + 0xc8], 0xffffffff
call fcn.0059fdf0
test al, al
jne 0x556729
mov eax, dword [esi + 0x10]
mov byte [eax + 0x14], 1
jmp 0x556729
ud2
lea eax, [esi + 0xa4]
mov dword [esi + 0x18], 0x63c5f4
mov dword [esi + 0x1c], 2
mov dword [esi + 0x38], 2
mov dword [esi + 0x40], 2
mov dword [esi + 0x48], 0x20
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 4
mov byte [esi + 0x54], 3
mov dword [esi + 0x58], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0x20
mov dword [esi + 0x6c], 1
mov dword [esi + 0x70], 4
mov byte [esi + 0x74], 3
mov dword [esi + 0xc8], 1
mov dword [esi + 0xa8], eax
lea eax, [esi + 0x30]
mov dword [esi + 0xac], 0x554980
mov dword [esi + 0xb0], eax
lea eax, [esi + 0x38]
mov dword [esi + 0xb4], 0x558c70
mov dword [esi + 0x28], eax
lea eax, [esi + 0xa8]
mov dword [esi + 0x2c], 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 2
lea eax, [esi + 0x18]
push 0x63c604
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x556a86
mov dword [esi + 0xc8], 3
push 0x60
push 8
call fcn.005a08c0
add esp, 8
ud2