Function at 0x40c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x591430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
call fcn.00402fe0
lea edi, [esi + 0x3c]
mov dword [esi], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
lea ecx, [esi + 0x38]
mov dword [ecx], 0xffffffff
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [ecx], 0x80
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x80
cmovbe eax, ecx
mov byte [ebp - 4], 2
mov ecx, 1
push edi
mov esi, dword [eax]
cmp esi, ecx
mov eax, esi
cmovb eax, ecx
mov ecx, edi
push eax
call fcn.00406730
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
mov eax, dword [edx + 0xc]
mov dword [eax], ecx
mov eax, dword [edx + 0x1c]
mov dword [eax], ecx
mov eax, dword [edx + 0x2c]
mov dword [eax], 0
mov ecx, dword [edi]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + esi]
mov eax, dword [edi + 0x10]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], edx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
lea esi, [edi + 0x5c]
mov byte [edi + 0x4c], 0
mov dword [ebp - 0x1c], esi
push 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00409ab0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
add esp, 8
push eax
push 0x4078e0
push ecx
mov ecx, dword [eax]
call fcn.00417930
lea ecx, [esi + 4]
mov dword [esi], eax
mov dword [ecx + 8], 0
xorps xmm0, xmm0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 2
mov byte [ecx + 0x24], 0
movups xmmword [ecx + 0x28], xmm0
mov dword [ebp - 0x10], ecx
movq qword [ecx + 0x38], xmm0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x28], 2
mov dword [ecx + 0x2c], 0
mov eax, dword [esi]
mov dword [ecx], 0xffffffff
add eax, 0x14
mov byte [ecx + 4], 0
mov esi, dword [ecx + 0xc]
mov dword [ecx + 0xc], 0
mov dword [ebp - 0x14], eax
mov dword [ecx + 8], 0
test esi, esi
je 0x40c6c7
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x40c6c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x40c6c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [ecx + 0x14], 0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40c6f5
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x14]
mov dword [esi + 0x2c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x18]
lea ecx, [edi + 0xa8]
push esi
mov byte [ebp - 4], 4
call fcn.0040a560
push esi
lea ecx, [edi + 0xd0]
mov byte [ebp - 4], 5
call fcn.0040a560
lea ecx, [edi + 0xf8]
mov dword [ecx], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x58], eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 7
call fcn.0040f560
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 8
test eax, eax
je 0x40c774
test al, 1
jne 0x40c774
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x40c774
lea ecx, [ebp + 0x18]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2c