Function at 0x40b800
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580976
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5ea000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x34], vtable.CVolObject.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], vtable.CVolMem.0
call fcn.004070e0
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x24]
mov eax, edx
mov ebx, dword [ebp - 0x20]
sub eax, ebx
cmp eax, 4
jl 0x40b8bf
mov eax, dword [ebp - 0x28]
mov dword [ebx + eax], 0
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x40b980
mov ecx, dword [ebp - 0x28]
lea edi, [ebx + 4]
cmp edi, ebx
je 0x40b973
test edi, edi
jne 0x40b90d
test ecx, ecx
je 0x40b8f4
mov eax, dword [ebp - 0x34]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolBaseInputStream.virtual_12
jne 0x40b8ef
mov ecx, 0x5f3968
call fcn.00413fb0
jmp 0x40b8f4
lea ecx, [ebp - 0x34]
call eax
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
jmp 0x40b973
test ecx, ecx
jne 0x40b91e
push edi
lea ecx, [ebp - 0x34]
call fcn.004133b0
mov ecx, eax
jmp 0x40b973
mov esi, dword [ebp - 0x1c]
mov eax, 0x40
test esi, esi
cmovle esi, eax
cmp edx, edi
jl 0x40b935
sub edx, edi
cmp edx, esi
jle 0x40b970
mov eax, edi
cdq
idiv esi
mov eax, dword [ebp - 0x34]
sub esi, edx
add esi, edi
push esi
mov eax, dword [eax + 8]
push ecx
cmp eax, method.CVolBaseInputStream.virtual_8
jne 0x40b963
mov ecx, 0x5f3968
call fcn.00413f20
mov ecx, eax
test ecx, ecx
je 0x40bad6
jmp 0x40b96a
lea ecx, [ebp - 0x34]
call eax
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x10]
mov dword [ecx + ebx], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
xor ecx, ecx
test eax, eax
cmove esi, ecx
mov ecx, edi
call fcn.0040a280
mov byte [ebp - 4], 4
mov dword [edi], vtable.CWString.0
test esi, esi
je 0x40ba5f
cmp word [esi], 0
je 0x40ba5f
mov ecx, edi
call fcn.00414a80
mov edx, eax
mov eax, dword [edx + 0x14]
cmp eax, 2
jb 0x40b9d1
mov ecx, dword [edx + 0xc]
movzx ecx, word [ecx + eax - 2]
test cx, cx
jne 0x40b9d1
add eax, 0xfffffffe
mov dword [edx + 0x14], eax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9d6
mov eax, dword [edi + 0x20]
sub ecx, edx
mov edx, dword [edi + 0x24]
sub eax, edx
sar ecx, 1
mov dword [ebp - 0x14], edx
lea ebx, [ecx*2 + 2]
cmp eax, ebx
jl 0x40ba3e
cmp ebx, 2
jne 0x40ba0f
mov eax, dword [edi + 0x1c]
movzx ecx, word [esi]
mov word [edx + eax], cx
add dword [edi + 0x24], ebx
jmp 0x40ba5c
cmp ebx, 4
jne 0x40ba21
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi]
mov dword [edx + eax], ecx
add dword [edi + 0x24], ebx
jmp 0x40ba5c
cmp ebx, 8
jne 0x40ba3e
mov eax, dword [edi + 0x1c]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebx + eax], ecx
mov dword [ebx + eax + 4], edx
add dword [edi + 0x24], 8
jmp 0x40ba5c
test ebx, ebx
jle 0x40ba5c
lea eax, [edx + ebx]
push eax
lea ecx, [edi + 0x10]
call fcn.00413410
add eax, dword [ebp - 0x14]
push ebx
push esi
push eax
call fcn.00563b50
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x40baa2
mov eax, dword [ebp - 0x34]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolBaseInputStream.virtual_12
jne 0x40ba9d
mov ecx, 0x5f3968
call fcn.00413fb0
jmp 0x40baa2
lea ecx, [ebp - 0x34]
call eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], vtable.CVolObject.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0056733b
int3