Function at 0x41a210
Capabilities:
Read file on windows
Read pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d347
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x7bf004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x418], ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x438], ecx
cmp ecx, 0xffff
jle 0x41a2fb
mov edi, dword [esi + 0xc]
lea ebx, [ecx - 0xffff]
add ebx, edi
cmp edi, ebx
ja 0x41a28c
push 0xa
push edi
call fcn.0056dc62
add esp, 8
test eax, eax
je 0x41a28c
lea edi, [eax + 2]
cmp edi, ebx
jbe 0x41a276
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x41a297
xor ecx, ecx
jmp 0x41a29a
mov ecx, dword [esi + 0xc]
sub edi, ecx
test edi, edi
jle 0x41a2ea
cmp edi, eax
jge 0x41a2cd
mov ecx, dword [esi + 0xc]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0056e960
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp eax, edi
je 0x41a2cd
sub eax, edi
mov ecx, esi
push eax
call fcn.0041c3d0
mov ecx, dword [esi + 0x14]
jmp 0x41a2ef
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41a2dc
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], ecx
mov ebx, dword [ebp - 0x418]
mov dword [ebp - 0x438], ecx
cmp ecx, 2
jb 0x41a313
mov eax, dword [esi + 0xc]
movzx eax, word [eax + ecx - 2]
test ax, ax
jne 0x41a313
lea eax, [ecx - 2]
mov dword [esi + 0x14], eax
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolMem.0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x41c], 0x40
mov dword [ebp - 4], 1
lea eax, [ebp - 0x414]
push 0
push eax
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x43c], 1
mov dword [ebp - 0x414], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x41a4e3
nop dword [eax]
cmp dword [ebp - 0x414], 0
je 0x41a4ed
push 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a4e3
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x41a4ed
mov eax, dword [ebp - 0x424]
mov ebx, dword [ebp - 0x420]
sub eax, ebx
cmp eax, edi
jl 0x41a48f
cmp edi, 1
jne 0x41a42f
mov eax, dword [ebp - 0x428]
movzx ecx, byte [ebp - 0x410]
mov byte [ebx + eax], cl
inc dword [ebp - 0x420]
jmp 0x41a4b5
cmp edi, 2
jne 0x41a44d
mov eax, dword [ebp - 0x428]
movzx ecx, word [ebp - 0x410]
mov word [ebx + eax], cx
add dword [ebp - 0x420], edi
jmp 0x41a4b5
cmp edi, 4
jne 0x41a469
mov ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x410]
mov dword [ebx + ecx], eax
add dword [ebp - 0x420], edi
jmp 0x41a4b5
cmp edi, 8
jne 0x41a48f
mov ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x410]
mov dword [ebx + ecx], eax
mov eax, dword [ebp - 0x40c]
mov dword [ebx + ecx + 4], eax
add dword [ebp - 0x420], edi
jmp 0x41a4b5
test edi, edi
jle 0x41a4b5
lea eax, [edi + ebx]
push eax
lea ecx, [ebp - 0x434]
call fcn.0041c3d0
push edi
lea ecx, [ebp - 0x410]
add eax, ebx
push ecx
push eax
call fcn.0056e3e0
add esp, 0xc
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push 0
push eax
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x414], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x41a3b0
mov dword [ebp - 0x43c], 0
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x418], ecx
test ecx, ecx
je 0x41a89e
mov edx, dword [ebp - 0x424]
mov eax, edx
sub eax, ecx
cmp eax, 4
jl 0x41a529
mov eax, dword [ebp - 0x428]
mov dword [ecx + eax], 0
add dword [ebp - 0x420], 4
jmp 0x41a611
lea ebx, [ecx + 4]
cmp ebx, ecx
mov ecx, dword [ebp - 0x428]
je 0x41a604
test ebx, ebx
jne 0x41a589
test ecx, ecx
je 0x41a567
mov eax, dword [ebp - 0x434]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolMem.virtual_12
jne 0x41a55f
mov ecx, 0x7c89b8
call fcn.0041cd40
jmp 0x41a567
lea ecx, [ebp - 0x434]
call eax
mov dword [ebp - 0x428], 0
xor ecx, ecx
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
jmp 0x41a604
test ecx, ecx
jne 0x41a59d
push ebx
lea ecx, [ebp - 0x434]
call fcn.0041c370
mov ecx, eax
jmp 0x41a604
mov edi, dword [ebp - 0x41c]
mov eax, 0x40
test edi, edi
cmovle edi, eax
cmp edx, ebx
jl 0x41a5b7
sub edx, ebx
cmp edx, edi
jle 0x41a5fe
mov eax, ebx
cdq
idiv edi
mov eax, dword [ebp - 0x434]
sub edi, edx
add edi, ebx
push edi
mov eax, dword [eax + 8]
push ecx
cmp eax, method.CVolMem.virtual_8
jne 0x41a5e8
mov ecx, 0x7c89b8
call fcn.0041ccb0
mov ecx, eax
test ecx, ecx
je 0x41aa00
jmp 0x41a5f2
lea ecx, [ebp - 0x434]
call eax
mov ecx, eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], ebx
mov eax, dword [ebp - 0x418]
mov dword [ecx + eax], 0
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
mov byte [ebp - 4], 2
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolMem.0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x448], 0x40
mov byte [ebp - 4], 3
cmp dword [ebp - 0x420], 0
je 0x41a785
mov edx, dword [ebp - 0x428]
mov dword [ebp - 0x440], edx
test edx, edx
je 0x41a785
cmp byte [edx], 0
je 0x41a785
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a6a2
push 0
sub ecx, edi
push 0
lea eax, [ecx + 1]
push eax
push edx
push 0
push 0
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
mov dword [ebp - 0x414], ecx
add ecx, ecx
cmp dword [ebp - 0x454], 0
je 0x41a6ed
push ecx
lea ecx, [ebp - 0x460]
call fcn.0041c3d0
mov ecx, dword [ebp - 0x414]
mov edi, eax
jmp 0x41a75f
test ecx, ecx
jne 0x41a6fb
mov ecx, dword [ebp - 0x414]
xor edi, edi
jmp 0x41a75f
mov ebx, dword [ebp - 0x448]
mov eax, 0x40
test ebx, ebx
cmovle ebx, eax
mov eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x460]
sub ebx, edx
add ebx, ecx
push ebx
mov eax, dword [eax]
cmp eax, method.CVolMem.virtual_0
jne 0x41a73a
mov ecx, 0x7c89b8
call fcn.0041cc50
mov edi, eax
test edi, edi
je 0x41aa00
jmp 0x41a744
lea ecx, [ebp - 0x460]
call eax
mov edi, eax
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], ebx
lea eax, [ecx + ecx]
mov dword [ebp - 0x44c], eax
push ecx
push edi
push dword [ebp - 0x418]
push dword [ebp - 0x440]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x41a785
test edi, edi
je 0x41a831
jmp 0x41a78a
mov edi, 0x5d007c
movzx eax, word [edi]
mov dword [ebp - 0x440], eax
test ax, ax
je 0x41a831
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a7a1
mov eax, dword [esi + 0x10]
sub ecx, edx
mov edx, dword [esi + 0x14]
sub eax, edx
sar ecx, 1
mov dword [ebp - 0x418], edx
lea ebx, [ecx + ecx]
cmp eax, ebx
jl 0x41a811
cmp ebx, 2
jne 0x41a7df
mov eax, dword [ebp - 0x440]
movzx ecx, ax
mov eax, dword [esi + 0xc]
mov word [edx + eax], cx
add dword [esi + 0x14], ebx
jmp 0x41a831
cmp ebx, 4
jne 0x41a7f1
mov eax, dword [esi + 0xc]
mov ecx, dword [edi]
mov dword [edx + eax], ecx
add dword [esi + 0x14], ebx
jmp 0x41a831
cmp ebx, 8
jne 0x41a811
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp - 0x418]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebx + eax], ecx
mov dword [ebx + eax + 4], edx
add dword [esi + 0x14], 8
jmp 0x41a831
test ebx, ebx
jle 0x41a831
lea eax, [edx + ebx]
mov ecx, esi
push eax
call fcn.0041c3d0
add eax, dword [ebp - 0x418]
push ebx
push edi
push eax
call fcn.0056e3e0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolMem.0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x454]
test ecx, ecx
je 0x41a872
mov eax, dword [ebp - 0x460]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolMem.virtual_12
jne 0x41a86a
mov ecx, 0x7c89b8
call fcn.0041cd40
jmp 0x41a872
lea ecx, [ebp - 0x460]
call eax
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x450], 0
mov byte [ebp - 4], 1
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolObject.0
mov ecx, dword [ebp - 0x444]
test ecx, ecx
je 0x41a8b3
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x438]
mov dword [ecx], eax
mov edx, dword [esi + 0x10]
mov eax, edx
mov ecx, dword [esi + 0x14]
sub eax, ecx
mov dword [ebp - 0x444], ecx
cmp eax, 2
jl 0x41a8da
mov eax, dword [esi + 0xc]
xor edx, edx
mov word [ecx + eax], dx
add dword [esi + 0x14], 2
jmp 0x41a968
lea ebx, [ecx + 2]
cmp ebx, ecx
mov ecx, dword [esi + 0xc]
je 0x41a95c
test ebx, ebx
jne 0x41a90d
test ecx, ecx
je 0x41a8f4
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov dword [esi + 0xc], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
jmp 0x41a95c
mov edi, dword [esi + 0x18]
mov eax, 0x40
test ecx, ecx
jne 0x41a930
test edi, edi
mov ecx, esi
cmovle edi, eax
mov eax, ebx
cdq
idiv edi
mov eax, dword [esi]
sub edi, edx
add edi, ebx
push edi
call dword [eax]
jmp 0x41a951
test edi, edi
cmovle edi, eax
cmp edx, ebx
jl 0x41a93f
sub edx, ebx
cmp edx, edi
jle 0x41a959
mov eax, ebx
cdq
idiv edi
mov eax, dword [esi]
sub edi, edx
add edi, ebx
push edi
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], ebx
mov eax, dword [ebp - 0x444]
xor edx, edx
mov word [ecx + eax], dx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolMem.0
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x428]
test edx, edx
je 0x41a9af
mov eax, dword [ebp - 0x434]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CVolMem.virtual_12
jne 0x41a9a7
mov ecx, 0x7c89b8
call fcn.0041cd40
jmp 0x41a9af
lea ecx, [ebp - 0x434]
call eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
mov dword [ebp - method.CVolMem.virtual_0], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056c4d0
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00571c98
int3