Function at 0x40b270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cd26
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x42800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x40], vtable.CVolObject.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CVolMem.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 4], 2
mov ebx, dword [edx + 0xc]
test ebx, ebx
jne 0x40b30c
cmp dword [edx + 0x24], ebx
je 0x40b3db
mov ebx, dword [edx + 0x1c]
test ebx, ebx
je 0x40b3db
cmp word [ebx], 0
je 0x40b3db
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b320
push 0
push 0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x34], 0
mov edi, eax
mov dword [ebp - 0x10], edi
je 0x40b364
push edi
lea ecx, [ebp - 0x40]
call fcn.004125e0
mov edi, eax
mov eax, dword [ebp - 0x10]
jmp 0x40b3c1
test edi, edi
jne 0x40b36d
mov eax, dword [ebp - 0x10]
jmp 0x40b3c1
mov ecx, dword [ebp - 0x28]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0x40]
sub ecx, edx
add ecx, edi
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
push ecx
cmp eax, method.CWString.virtual_0
jne 0x40b3ab
mov ecx, 0x428a38
call fcn.00412fe0
mov edi, eax
test edi, edi
jne 0x40b3b2
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x40]
call eax
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], eax
push 0
push 0
push eax
push edi
push dword [ebp - 0x18]
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jg 0x40b3e5
mov edi, 0x421bab
mov ebx, 1
mov dword [esi], vtable.CVolObject.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 3
mov dword [esi], vtable.CVolMem.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0x40
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
sub eax, ecx
mov dword [esi], vtable.CVolMem.0
mov dword [ebp - 0x18], ecx
cmp eax, ebx
jl 0x40b4f5
cmp ebx, 1
jne 0x40b465
test edi, edi
jne 0x40b455
mov eax, dword [esi + 0xc]
xor dl, dl
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
jmp 0x40b51c
mov eax, dword [esi + 0xc]
mov dl, byte [edi]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
jmp 0x40b51c
cmp ebx, 2
jne 0x40b492
test edi, edi
jne 0x40b47f
mov eax, dword [esi + 0xc]
xor edx, edx
mov word [ecx + eax], dx
add dword [esi + 0x14], ebx
jmp 0x40b51c
mov eax, dword [esi + 0xc]
movzx edx, word [edi]
mov word [ecx + eax], dx
add dword [esi + 0x14], 2
jmp 0x40b51c
cmp ebx, 4
jne 0x40b4b6
test edi, edi
jne 0x40b4a8
mov eax, dword [esi + 0xc]
xor edx, edx
mov dword [ecx + eax], edx
add dword [esi + 0x14], ebx
jmp 0x40b51c
mov eax, dword [esi + 0xc]
mov edx, dword [edi]
mov dword [ecx + eax], edx
add dword [esi + 0x14], 4
jmp 0x40b51c
cmp ebx, 8
jne 0x40b4f1
test edi, edi
jne 0x40b4dc
mov eax, dword [esi + 0xc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ecx + eax], edx
mov dword [ecx + eax + 4], edi
add dword [esi + 0x14], ebx
jmp 0x40b51c
mov eax, dword [esi + 0xc]
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov dword [ecx + eax], edx
mov dword [ecx + eax + 4], edi
add dword [esi + 0x14], 8
jmp 0x40b51c
test ebx, ebx
jle 0x40b51c
lea eax, [ecx + ebx]
mov ecx, esi
push eax
call fcn.004125e0
add eax, dword [ebp - 0x18]
push ebx
test edi, edi
je 0x40b511
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x40b519
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CVolMem.0
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x40b55f
mov eax, dword [ebp - 0x40]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x40b55a
mov ecx, 0x428a38
call fcn.004130d0
jmp 0x40b55f
lea ecx, [ebp - 0x40]
call eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CVolObject.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4