Function at 0x40d600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588276
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5f2000]
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.00404980
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 0x40d6bf
mov eax, dword [ebp - 0x28]
mov dword [ebx + eax], 0
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x40d780
mov ecx, dword [ebp - 0x28]
lea edi, [ebx + 4]
cmp edi, ebx
je 0x40d773
test edi, edi
jne 0x40d70d
test ecx, ecx
je 0x40d6f4
mov eax, dword [ebp - 0x34]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWConstString.virtual_12
jne 0x40d6ef
mov ecx, 0x5fbad8
call fcn.00414350
jmp 0x40d6f4
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 0x40d773
test ecx, ecx
jne 0x40d71e
push edi
lea ecx, [ebp - 0x34]
call fcn.00413750
mov ecx, eax
jmp 0x40d773
mov esi, dword [ebp - 0x1c]
mov eax, 0x40
test esi, esi
cmovle esi, eax
cmp edx, edi
jl 0x40d735
sub edx, edi
cmp edx, esi
jle 0x40d770
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.CWConstString.virtual_8
jne 0x40d763
mov ecx, 0x5fbad8
call fcn.004142c0
mov ecx, eax
test ecx, ecx
je 0x40d8d6
jmp 0x40d76a
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.00404e80
mov byte [ebp - 4], 4
mov dword [edi], vtable.CWString.0
test esi, esi
je 0x40d85f
cmp word [esi], 0
je 0x40d85f
mov ecx, edi
call fcn.00414e20
mov edx, eax
mov eax, dword [edx + 0x14]
cmp eax, 2
jb 0x40d7d1
mov ecx, dword [edx + 0xc]
movzx ecx, word [ecx + eax - 2]
test cx, cx
jne 0x40d7d1
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 0x40d7d6
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 0x40d83e
cmp ebx, 2
jne 0x40d80f
mov eax, dword [edi + 0x1c]
movzx ecx, word [esi]
mov word [edx + eax], cx
add dword [edi + 0x24], ebx
jmp 0x40d85c
cmp ebx, 4
jne 0x40d821
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi]
mov dword [edx + eax], ecx
add dword [edi + 0x24], ebx
jmp 0x40d85c
cmp ebx, 8
jne 0x40d83e
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 0x40d85c
test ebx, ebx
jle 0x40d85c
lea eax, [edx + ebx]
push eax
lea ecx, [edi + 0x10]
call fcn.004137b0
add eax, dword [ebp - 0x14]
push ebx
push esi
push eax
call fcn.0056a1d0
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 0x40d8a2
mov eax, dword [ebp - 0x34]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWConstString.virtual_12
jne 0x40d89d
mov ecx, 0x5fbad8
call fcn.00414350
jmp 0x40d8a2
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.0056d8ab
int3