Function at 0x10066360
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1011b065
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
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.10066900
mov dword [ebp + 0x138], esi
mov eax, dword [esi + 0x88]
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.1009c7c0
mov dword [ebp + 0x154], eax
mov dword [ebp + 0x158], ebx
mov eax, dword [esi + 0x364]
mov dword [ebp + 0x160], eax
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [0x101556f0]
mov dword [ebp + 0x168], ecx
mov edx, dword [0x101556f4]
mov dword [ebp + 0x16c], edx
mov eax, dword [0x101556f0]
mov dword [ebp + 0x170], eax
mov ecx, dword [0x101556f4]
lea eax, [ebp + 0x178]
mov dword [ebp + 0x174], ecx
call fcn.100e0ef0
mov edx, dword [0x101556f0]
mov dword [ebp + 0x180], edx
mov eax, dword [0x101556f4]
mov dword [ebp + 0x184], eax
mov ecx, dword [0x101556f0]
mov dword [ebp + 0x188], ecx
mov edx, dword [0x101556f4]
mov dword [ebp + 0x18c], edx
mov eax, dword [0x101556f0]
mov dword [ebp + 0x190], eax
mov ecx, dword [0x101556f4]
mov dword [ebp + 0x194], ecx
mov edx, dword [0x101556f0]
mov dword [ebp + 0x198], edx
mov eax, dword [0x101556f4]
mov dword [ebp + 0x19c], eax
lea eax, [ebp + 0x1a0]
call fcn.100e0ef0
mov ecx, dword [0x101556f0]
mov dword [ebp + 0x1a8], ecx
mov edx, dword [0x101556f4]
mov dword [ebp + 0x1ac], edx
mov eax, dword [0x101556f0]
mov dword [ebp + 0x1b0], eax
mov ecx, dword [0x101556f4]
mov dword [ebp + 0x1b4], ecx
mov edx, dword [0x101556f0]
mov dword [ebp + 0x1b8], edx
mov eax, dword [0x101556f4]
mov dword [ebp + 0x1bc], eax
mov ecx, dword [0x101556f0]
mov dword [ebp + 0x1c0], ecx
mov edx, dword [0x101556f4]
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, 0x3d0
mov dword [ebp + 0x1ec], esi
mov dword [ebp + 0x1f0], ebx
lea eax, [ebp + 0x1f4]
push eax
mov byte [esp + 0x2c], 6
call fcn.100651d0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov ecx, dword [esp + 0x48]
mov dword [ebp + 0x214], ecx
mov dword [ebp + 0x218], eax
je 0x1006659f
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 0x100665d3
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 [0x1014e214]
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 + 0x90]
mov eax, 1
mov dword [ebp + 0x310], eax
mov dword [ebp + 0x320], eax
mov al, byte [esp + 0x3c]
and al, 1
mov dword [ebp + 0x2f4], ecx
or esi, 0xffffffff
mov cl, al
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 + 0x324], esi
mov dword [ebp + 0x330], ebx
mov dword [ebp + 0x334], ebx
mov dword [ebp + 0x338], ebx
mov dword [ebp + 0x33c], ebx
mov dword [ebp + 0x340], ebx
mov word [ebp + 0x348], bx
mov byte [ebp + 0x34a], bl
mov byte [ebp + 0x34b], 2
mov byte [ebp + 0x34c], bl
and cl, 1
mov dl, al
add al, al
and dl, 1
or dl, al
movzx eax, byte [ebp + 0x350]
or cl, 0x28
and dl, 3
and al, 0xfe
add cl, cl
shl dl, 4
or al, 2
mov dword [ebp + 0x328], esi
mov dword [ebp + 0x32c], esi
lea esi, [esp + 0x18]
mov byte [ebp + 0x34d], cl
mov byte [ebp + 0x34e], dl
mov byte [ebp + 0x34f], bl
mov byte [ebp + 0x350], al
call fcn.10007b70
test byte [ebp + 0x34e], 0x10
je 0x100667ce
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100667ce
add dword [eax + 0xb8], 1
mov ecx, dword [ebp + 0x138]
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov edx, dword [ecx + 0x208]
mov dword [ebp + 0x344], edx
je 0x100667fe
test byte [eax + 0x24], 2
je 0x100667fe
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 0x1006686c
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1006686c
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 0x1006686c
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 0x1006688b
lea edx, [ecx + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1006688b
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 0x100668c5
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100668c5
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 0x100668c5
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