Function at 0x10012870
Capabilities:
Access peb ldr_data
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1bb6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x30b4
call fcn.1009b8d0
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x30b0], eax
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x30c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov esi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x10]
xor ebx, ebx
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x64]
mov dword [esp + 0x74], ecx
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x1c], ebx
je 0x10012945
lea ecx, [esp + 0x4c]
push ecx
call fcn.10001c90
mov ecx, eax
mov eax, dword [ecx]
add esp, 4
cmp dword [ecx + 4], ebx
jl 0x10012931
jg 0x1001292c
cmp eax, 0x7fffffff
jbe 0x10012931
mov eax, bind
cdq
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0x3c], bl
push 2
push ebx
lea edi, [esi + 0xc0d8]
push ebx
mov dword [esp + 0x30dc], ebx
push ebx
mov ecx, edi
mov dword [esp + 0x54], edi
call sym.ACE.dll_private:_int___thiscall_ACE_Token::shared_acquire_void____cdecl___void____void___class_ACE_Time_Value___enum_ACE_Token::ACE_Token_Op_Type_
mov dword [esp + 0x48], eax
mov byte [esp + 0x30d0], 1
cmp eax, 0xffffffff
je 0x10012b83
cmp dword [esi + 0xc130], ebx
je 0x100129b4
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x3c]
cmp eax, ebx
jle 0x10012996
dec eax
mov dword [edi + 0x3c], eax
jmp 0x1001299d
mov ecx, edi
call sym.ACE.dll_private:_void___thiscall_ACE_Token::wakeup_next_waiter_void_
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
call sym.ACE.dll_public:_void___thiscall_ACE_Countdown_Time::stop_void_
xor eax, eax
jmp 0x10012b8f
lea ecx, [esp + 0x1c]
call sym.ACE.dll_public:_void___thiscall_ACE_Countdown_Time::update_void_
push ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
mov ecx, dword [esi + 0xc0b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x68]
push edx
call eax
mov edi, eax
cmp edi, ebx
je 0x10012a13
lea ecx, [esp + 0x64]
push ecx
push edi
call fcn.10001790
add esp, 8
mov byte [esp + 0x13], 1
test al, al
jne 0x10012a17
mov byte [esp + 0x13], bl
or eax, 0xffffffff
push 0x100c
lea edx, [esi + 0x3048]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x10a8], eax
mov dword [esp + 0x20b4], eax
push edx
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x10ac], ebx
mov dword [esp + 0x10b4], ebx
mov dword [esp + 0x20b8], ebx
mov dword [esp + 0x20c0], ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x100c
lea ecx, [esi + 0x4054]
push ecx
lea edx, [esp + 0x10a8]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x100c
add esi, 0x5060
lea eax, [esp + 0x20b0]
push esi
push eax
call sub.MSVCR100.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x20ac], ebx
lea edx, [esp + 0x20b4]
setle cl
xor eax, eax
lea esi, [ecx - 1]
and esi, edx
cmp dword [esp + 0x10a0], ebx
lea ecx, [esp + 0x10a8]
setle al
xor edx, edx
dec eax
and eax, ecx
cmp dword [esp + 0x94], ebx
mov dword [esp + 0x14], eax
setle dl
lea eax, [esp + 0x9c]
dec edx
and edx, eax
mov dword [esp + 0x18], edx
cmp edi, ebx
jne 0x10012b01
xor eax, eax
jmp 0x10012b08
mov ecx, edi
call sym.ACE.dll_public:_struct_timeval_const____thiscall_ACE_Time_Value::operator_struct_timeval_const__void_const
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
push esi
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10012b35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x10012b47
cmp eax, ebx
jne 0x10012b47
mov dword [esp + 0x14], 1
cmp byte [esp + 0x13], bl
jne 0x10012b4b
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x44]
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jle 0x10012b66
dec eax
mov dword [esi + 0x3c], eax
jmp 0x10012b6d
mov ecx, esi
call sym.ACE.dll_private:_void___thiscall_ACE_Token::wakeup_next_waiter_void_
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
call sym.ACE.dll_public:_void___thiscall_ACE_Countdown_Time::stop_void_
mov eax, dword [esp + 0x14]
jmp 0x10012b8f
lea ecx, [esp + 0x1c]
call sym.ACE.dll_public:_void___thiscall_ACE_Countdown_Time::stop_void_
or eax, 0xffffffff
mov ecx, dword [esp + 0x30c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30b0]
xor ecx, esp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4