Function at 0x4b7c50
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x521145
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [ebp + 4], ebx
mov byte [esp + 0x28], 2
mov dword [ebp], method.libtorrent::bt_peer_connection.virtual_0
lea eax, [ebp + 0x48]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
call fcn.00452f40
mov dword [ebp + 0x138], esi
mov eax, dword [esi + 0xa0]
mov dword [ebp + 0x13c], eax
or eax, 0xffffffff
mov dword [ebp + 0x140], eax
mov dword [ebp + 0x144], eax
mov dword [ebp + 0x148], eax
mov dword [ebp + 0x14c], eax
call fcn.004c55e0
mov dword [ebp + 0x154], eax
mov dword [ebp + 0x158], ebx
mov eax, dword [esi + 0x37c]
mov dword [ebp + 0x160], eax
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [0x55dcc8]
mov dword [ebp + 0x168], ecx
mov edx, dword [0x55dccc]
mov dword [ebp + 0x16c], edx
mov eax, dword [0x55dcc8]
mov dword [ebp + 0x170], eax
mov ecx, dword [0x55dccc]
lea eax, [ebp + 0x178]
mov dword [ebp + 0x174], ecx
call fcn.0047d860
mov edx, dword [0x55dcc8]
mov dword [ebp + 0x180], edx
mov eax, dword [0x55dccc]
mov dword [ebp + 0x184], eax
mov ecx, dword [0x55dcc8]
mov dword [ebp + 0x188], ecx
mov edx, dword [0x55dccc]
mov dword [ebp + 0x18c], edx
mov eax, dword [0x55dcc8]
mov dword [ebp + 0x190], eax
mov ecx, dword [0x55dccc]
mov dword [ebp + 0x194], ecx
mov edx, dword [0x55dcc8]
mov dword [ebp + 0x198], edx
mov eax, dword [0x55dccc]
mov dword [ebp + 0x19c], eax
lea eax, [ebp + 0x1a0]
call fcn.0047d860
mov ecx, dword [0x55dcc8]
mov dword [ebp + 0x1a8], ecx
mov edx, dword [0x55dccc]
mov dword [ebp + 0x1ac], edx
mov eax, dword [0x55dcc8]
mov dword [ebp + 0x1b0], eax
mov ecx, dword [0x55dccc]
mov dword [ebp + 0x1b4], ecx
mov edx, dword [0x55dcc8]
mov dword [ebp + 0x1b8], edx
mov eax, dword [0x55dccc]
mov dword [ebp + 0x1bc], eax
mov ecx, dword [0x55dcc8]
mov dword [ebp + 0x1c0], ecx
mov edx, dword [0x55dccc]
mov dword [ebp + 0x1c4], edx
mov dword [ebp + 0x1c8], ebx
mov dword [ebp + 0x1cc], ebx
mov dword [ebp + 0x1d0], ebx
mov dword [ebp + 0x1d4], ebx
mov dword [ebp + 0x1d8], ebx
mov dword [ebp + 0x1dc], ebx
mov dword [ebp + 0x1e0], ebx
mov dword [ebp + 0x1e4], ebx
mov dword [ebp + 0x1e8], ebx
add esi, 0x3e8
mov dword [ebp + 0x1ec], esi
mov dword [ebp + 0x1f0], ebx
lea eax, [ebp + 0x1f4]
push eax
mov byte [esp + 0x2c], 6
call fcn.004b7080
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov ecx, dword [esp + 0x48]
mov dword [ebp + 0x214], ecx
mov dword [ebp + 0x218], eax
je 0x4b7e8f
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
lea edi, [ebp + 0x21c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x238]
mov dword [edi], eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov dword [edi + 4], eax
je 0x4b7ec3
add eax, 8
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [ebp + 0x240], ebx
mov dword [ebp + 0x244], ebx
mov dword [ebp + 0x248], ebx
mov dword [ebp + 0x24c], ebx
lea eax, [ebp + 0x254]
mov dword [ebp + 0x250], ebx
and dword [eax + 4], 0x80000000
and byte [eax + 8], 0xfe
mov dword [esp + 0x34], eax
mov dword [eax], ebx
mov dword [ebp + 0x264], ebx
mov dword [ebp + 0x268], ebx
mov dword [ebp + 0x26c], ebx
mov dword [ebp + 0x274], ebx
mov dword [ebp + 0x278], ebx
mov dword [ebp + 0x27c], ebx
mov dword [ebp + 0x284], ebx
mov dword [ebp + 0x288], ebx
mov dword [ebp + 0x28c], ebx
mov dword [ebp + 0x294], ebx
mov dword [ebp + 0x298], ebx
mov dword [ebp + 0x29c], ebx
mov dword [ebp + 0x2a4], ebx
mov dword [ebp + 0x2a8], ebx
mov dword [ebp + 0x2ac], ebx
mov dword [ebp + 0x2b4], ebx
mov dword [ebp + 0x2b8], ebx
mov dword [ebp + 0x2bc], ebx
mov dword [ebp + 0x2c4], ebx
mov dword [ebp + 0x2c8], ebx
mov dword [ebp + 0x2cc], ebx
mov byte [esp + 0x28], 0x11
mov edx, dword [0x557040]
mov eax, dword [ebp + 0x138]
mov dword [ebp + 0x2d0], edx
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x2d8], ebx
mov dword [ebp + 0x2dc], ebx
mov dword [ebp + 0x2e0], ebx
mov dword [ebp + 0x2e4], ebx
mov dword [ebp + 0x2e8], ebx
mov dword [ebp + 0x2ec], ebx
mov dword [ebp + 0x2f0], ebx
mov ecx, dword [eax + 0xa8]
mov eax, 1
mov dword [ebp + 0x310], eax
mov dword [ebp + 0x320], eax
or eax, 0xffffffff
mov dword [ebp + 0x324], eax
mov dword [ebp + 0x328], eax
mov al, byte [esp + 0x3c]
and al, 1
mov dword [ebp + 0x2f4], ecx
mov dword [ebp + 0x2f8], ebx
mov dword [ebp + 0x2fc], ebx
mov dword [ebp + 0x300], ebx
mov dword [ebp + 0x304], ebx
mov dword [ebp + 0x308], ebx
mov dword [ebp + 0x30c], ebx
mov dword [ebp + 0x314], ebx
mov dword [ebp + 0x318], ebx
mov dword [ebp + 0x31c], edx
mov dword [ebp + 0x32c], ebx
mov dword [ebp + 0x330], ebx
mov dword [ebp + 0x334], ebx
mov dword [ebp + 0x338], ebx
mov dword [ebp + 0x33c], ebx
mov word [ebp + 0x344], bx
mov byte [ebp + 0x346], bl
mov byte [ebp + 0x347], 2
mov byte [ebp + 0x348], bl
mov cl, al
mov dl, al
add al, al
and dl, 1
or dl, al
movzx eax, byte [ebp + 0x34c]
and cl, 1
or cl, 0x28
and dl, 3
and al, 0xfe
add cl, cl
shl dl, 4
or al, 2
lea esi, [esp + 0x18]
mov byte [ebp + 0x349], cl
mov byte [ebp + 0x34a], dl
mov byte [ebp + 0x34b], bl
mov byte [ebp + 0x34c], al
call fcn.004af7a0
test byte [ebp + 0x34a], 0x10
je 0x4b80b8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b80b8
add dword [eax + 0xc0], 1
mov ecx, dword [ebp + 0x138]
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov edx, dword [ecx + 0x220]
mov dword [ebp + 0x340], edx
je 0x4b80e8
test byte [eax + 0x24], 2
je 0x4b80e8
mov eax, dword [ebp + 0x2f4]
add eax, eax
add eax, eax
mov dword [ebp + 0x2f4], eax
lea ecx, [ebp + 0x15c]
lea eax, [ebp + 0x15e]
sub eax, ecx
push eax
push ebx
push ecx
mov byte [ebp + 8], bl
mov byte [ebp + 9], bl
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x40]
lea eax, [ebp + 0x240]
add esp, 0xc
sub ecx, eax
push ecx
push ebx
push eax
call sub.MSVCR80.dll_memset
mov esi, dword [esp + 0x28]
add esp, 0xc
cmp esi, ebx
je 0x4b8156
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b8156
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4b8156
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x4b8175
lea edx, [ecx + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4b8175
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x28], 0xffffffff
mov esi, dword [esp + 0x4c]
cmp esi, ebx
je 0x4b81af
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b81af
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4b81af
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x20