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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov esi, dword [edi + 0x27]
mov eax, dword [0x6ac684]
mov ebx, dword [edi + 0xa3]
mov dword [esp + 0x14], eax
test esi, esi
je 0x559b23
lock inc dword [esi]
jmp 0x559b25
xor esi, esi
cmp byte [edi + 0xa8], 0
mov dword [esp + 0x10], esi
jne 0x559b47
test esi, esi
je 0x559e61
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jmp 0x559e57
or ecx, 0xffffffff
cmp dword [edi + 0xa9], ebx
jne 0x559b82
mov eax, dword [edi + 0xad]
cmp eax, esi
je 0x559bb8
test eax, eax
je 0x559b82
test esi, esi
je 0x559b82
mov edx, dword [eax + 4]
cmp edx, dword [esi + 4]
jne 0x559b82
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [esi + 0xc]
call fcn.005a4c60
add esp, 4
test al, al
jne 0x559bb8
or ecx, 0xffffffff
mov eax, dword [edi + 0xad]
mov ebx, dword [edi + 0xa9]
cmp eax, esi
je 0x559bb8
test eax, eax
je 0x559b99
lock inc dword [eax]
mov eax, dword [edi + 0xad]
mov dword [esp + 0x10], eax
test esi, esi
je 0x559bb8
mov eax, ecx
lock xadd dword [esi], eax
dec eax
jne 0x559bb8
push ecx
mov ecx, esi
call fcn.005a47b0
mov dword [esp + 0x64], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x70], getsockname
mov dword [esp + 0x60], getsockname
mov dword [esp + 0x2c], getsockname
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], eax
test byte [ecx + 0xf7], 3
jne 0x559c35
xor edx, edx
mov eax, ebx
div dword [ecx + 0xef]
mov eax, dword [ecx + 0xf3]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x559c35
cmp dword [eax + 4], ebx
je 0x559ddd
mov eax, dword [eax]
test eax, eax
jne 0x559c26
xor eax, eax
test eax, eax
lea esi, [esp + 0x28]
cmovne esi, eax
lea eax, [esp + 0x10]
push eax
add ecx, 0x104
call fcn.0055e210
test eax, eax
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x5c]
cmovne ecx, eax
dec dword [esi]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
dec dword [ecx]
test esi, esi
je 0x559c78
lock inc dword [esi]
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x6c], 0
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
add eax, 0x322
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
push ecx
mov ecx, eax
call fcn.0055cad0
test eax, eax
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x6c]
cmovne ecx, eax
mov dword [esp + 0x24], ecx
test esi, esi
je 0x559cf4
lock inc dword [esi]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x28]
mov ebx, dword [esp + 0x14]
push eax
mov dword [esp + 0x14], 0
lea ecx, [ebx + 0x129]
call fcn.0055e760
test eax, eax
lea edx, [esp + 0x10]
cmovne edx, eax
dec dword [edx]
cmp dword [edx], 0
jg 0x559d3b
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x129]
call fcn.0055e7e0
mov eax, dword [esp + 0x20]
dec dword [eax + 8]
mov ebx, dword [0x6af130]
mov edx, dword [0x6af13c]
mov ecx, dword [0x6af138]
mov eax, dword [0x6af134]
cmp dword [esp + 0x3c], ebx
jne 0x559d6a
cmp dword [esp + 0x40], eax
jne 0x559d6a
cmp dword [esp + 0x44], ecx
jne 0x559d6a
cmp dword [esp + 0x48], edx
je 0x559d9b
cmp dword [esp + 0x4c], ebx
jne 0x559d82
cmp dword [esp + 0x50], eax
jne 0x559d82
cmp dword [esp + 0x54], ecx
jne 0x559d82
cmp dword [esp + 0x58], edx
je 0x559d9b
mov eax, dword [esp + 0x24]
dec dword [eax]
cmp dword [eax], 0
jg 0x559d9b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
call fcn.0055cba0
mov edx, dword [esp + 0xc]
mov byte [edi + 0xa8], 0
mov eax, dword [edx]
cmp eax, dword [edi + 0xb1]
je 0x559de5
test eax, eax
je 0x559db7
lock inc dword [eax]
mov ecx, dword [edi + 0xb1]
or ebx, 0xffffffff
mov eax, dword [edx]
mov dword [edi + 0xb1], eax
test ecx, ecx
je 0x559de8
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x559de8
push ecx
call fcn.005a47b0
jmp 0x559de8
add eax, 8
jmp 0x559c37
or ebx, 0xffffffff
mov edi, dword [esp + 0x18]
mov ecx, 0x6adb40
push edi
mov dword [esp + 0x10], 0
call fcn.0055fae0
test eax, eax
lea edx, [esp + 0xc]
cmovne edx, eax
dec dword [edx]
cmp dword [edx], 0
jg 0x559e1a
push edi
mov ecx, 0x6adb40
call fcn.0055fb40
dec dword [0x6af2dc]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x559e37
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x559e37
push ecx
call fcn.005a47b0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x559e4e
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x559e4e
push ecx
call fcn.005a47b0
test esi, esi
je 0x559e61
lock xadd dword [esi], ebx
dec ebx
jne 0x559e61
push ecx
mov ecx, esi
call fcn.005a47b0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 0xc