Function at 0x414f10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41df7d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [edi + 0x14], 0
test eax, eax
jle 0x41513a
mov dword [ebp - 0x30], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x30], vtable.CVolObject.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 4], 1
test esi, esi
je 0x415079
cmp word [esi], 0
je 0x415079
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414fc0
push 0
push 0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push esi
push 0
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x24], 0
mov ebx, eax
mov dword [ebp - 0x10], ebx
je 0x415004
push ebx
lea ecx, [ebp - 0x30]
call fcn.004125e0
mov ebx, eax
mov eax, dword [ebp - 0x10]
jmp 0x415061
test ebx, ebx
jne 0x41500d
mov eax, dword [ebp - 0x10]
jmp 0x415061
mov ecx, dword [ebp - 0x18]
mov eax, 0x40
test ecx, ecx
cmovle ecx, eax
mov eax, ebx
cdq
idiv ecx
mov eax, dword [ebp - 0x30]
sub ecx, edx
add ecx, ebx
mov dword [ebp - 0x34], ecx
mov eax, dword [eax]
push ecx
cmp eax, method.CWString.virtual_0
jne 0x41504b
mov ecx, 0x428a38
call fcn.00412fe0
mov ebx, eax
test ebx, ebx
jne 0x415052
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x30]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], eax
push 0
push 0
push eax
push ebx
push dword [ebp - 0x38]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x41507e
mov ebx, 0x421bab
mov eax, dword [ebp - 0x14]
test al, 7
jne 0x4150dc
push eax
mov ecx, edi
call fcn.00412580
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x3c]
push esi
call sub.VCRUNTIME140.dll_memcpy
push 0
push ebx
mov ebx, dword [ebp - 0x14]
mov ecx, esi
mov edx, ebx
call fcn.00414e00
mov esi, dword [esi]
add esp, 0x14
test esi, esi
jle 0x4150d5
lea eax, [esi + 0xc]
cmp ebx, eax
jge 0x4150d5
lea eax, [ebx - 4]
cmp esi, eax
jg 0x4150d5
sub esp, 8
mov ecx, edi
call fcn.004128a0
push esi
mov ecx, edi
call fcn.004125e0
jmp 0x4150dc
mov ecx, edi
call fcn.00412690
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], vtable.CVolMem.0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x415117
mov eax, dword [ebp - 0x30]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x415112
mov ecx, 0x428a38
call fcn.004130d0
jmp 0x415117
lea ecx, [ebp - 0x30]
call eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], 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