Function at 0x40c2f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cf6d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x40c33c
cmp dword [ecx], 1
jne 0x40c330
call fcn.004197f0
jmp 0x40c335
call fcn.0041a170
mov dword [ebx + 0xc], 0
mov eax, dword [0x428060]
xor ecx, ecx
cmp dword [0x428068], ecx
mov dword [ebp - 0x34], vtable.CVolCommonBaseWithMemManager.0
cmove eax, ecx
mov dword [ebp - 0x34], vtable.CVolObject.0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x40c3a2
cmp dword [eax + 0x24], edi
je 0x40c467
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x40c467
cmp word [edi], 0
je 0x40c467
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c3b1
push 0
push 0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push edi
push 0
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x28], 0
mov esi, eax
mov dword [ebp + 0xc], esi
je 0x40c3f5
push esi
lea ecx, [ebp - 0x34]
call fcn.004125e0
mov esi, eax
mov eax, dword [ebp + 0xc]
jmp 0x40c44f
test esi, esi
jne 0x40c3fe
mov eax, dword [ebp + 0xc]
jmp 0x40c44f
mov ebx, dword [ebp - 0x1c]
mov eax, 0x40
test ebx, ebx
cmovle ebx, eax
mov eax, esi
cdq
idiv ebx
mov eax, dword [ebp - 0x34]
sub ebx, edx
add ebx, esi
push ebx
mov eax, dword [eax]
cmp eax, method.CWString.virtual_0
jne 0x40c439
mov ecx, 0x428a38
call fcn.00412fe0
mov esi, eax
test esi, esi
jne 0x40c440
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp - 0x34]
call eax
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
push 0
push 0
push eax
push esi
push dword [ebp - 0x14]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x40c46c
mov esi, 0x421bab
mov edx, dword [0x428068]
push esi
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004195a0
mov dword [ebx + 0xc], eax
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x40c4c4
mov eax, dword [ebp - 0x34]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x40c4bf
mov ecx, 0x428a38
call fcn.004130d0
jmp 0x40c4c4
lea ecx, [ebp - 0x34]
call eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov dword [ebp - 0x34], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8