Function at 0x40b610
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d2b0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, dword [edi]
mov dword [ebp - 0x38], 0x435840
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
push edi
push 0x40b910
push eax
call fcn.0040b9c0
mov esi, eax
mov dword [ebx], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x40], eax
mov dword [ebx + 0x20], 2
mov byte [ebx + 0x24], 0
xorps xmm0, xmm0
movups xmmword [ebx + 0x30], xmm0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x28], 2
mov dword [ebx + 0x2c], 0
lea eax, [ebx + 0x44]
mov dword [ebx + 0x58], vtable._B.0
mov dword [ebx + 0x50], 0x42b07c
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x5c], 0x42b08c
mov dword [ebx + 4], 0xffffffff
mov byte [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x40]
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40b6ed
mov dword [eax + 0x18], ecx
mov dword [esi + 0x40], ecx
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x43536c
mov eax, dword [ebp + 0xc]
cmp word [eax], 2
mov eax, 2
mov edx, 0x17
cmove edx, eax
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebx]
add ecx, 0x14
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x24]
push eax
push 0x11
push 2
mov dword [ebp - 0x58], edx
push edx
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040c9c0
cmp dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x3c]
jne 0x40b771
lea eax, [esi + 0x30]
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0x20], ecx
mov byte [esi + 0x24], 0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [esi + 0x28], 2
mov dword [esi + 0x2c], 0
mov eax, dword [ebp - 0x24]
test eax, eax
mov ecx, dword [ebp - 0x40]
jne 0x40b7d4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40b835
mov edi, dword [ebp + 0xc]
cmp word [edi], 2
mov ecx, 0x10
mov edx, 0x1c
cmove edx, ecx
push edx
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40b7bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], 0x435000
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40b848
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [ebp - 0x54]
push str.open
push dword [ebp - 0x20]
push eax
call fcn.004017e0
mov dword [ebp - 0x38], vtable.std::exception.0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x50]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], vtable.std::system_error.0
mov dword [ebp - 0x10], 2
push 0x433384
lea eax, [ebp - 0x38]
push eax
call fcn.0040f600
add esp, 8
mov dword [ebp - 0x24], 0x2719
mov dword [ebp - 0x20], 0x435000
mov eax, 0x2719
lea ecx, [ebp - 0x54]
push str.bind
push section..data
push eax
call fcn.004017e0
mov dword [ebp - 0x38], vtable.std::exception.0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x50]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], vtable.std::system_error.0
mov dword [ebp - 0x10], 1
push 0x433384
lea eax, [ebp - 0x38]
push eax
call fcn.0040f600
add esp, 8
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov dword [ebp - 0x54], vtable.std::exception.0
lea eax, [ebp - 0x50]
push eax
call fcn.0040fc2f
add esp, 0x1c
pop ebp
ret