Function at 0x407d40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e83d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3b8
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c4], edi
movsx esi, byte [ebx + 8]
xorps xmm0, xmm0
mov dword [edi], vtable.CNTFSVolume.0
xor eax, eax
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov word [edi + 0x68], ax
movups xmmword [edi + 0x28], xmm0
push esi
movups xmmword [edi + 0x38], xmm0
movups xmmword [edi + 0x48], xmm0
movups xmmword [edi + 0x58], xmm0
call fcn.00411d4e
add esp, 4
test eax, eax
je 0x408227
push esi
push str.._c:
lea eax, [ebp - 0x1c]
push 6
push eax
call fcn.0040b9d0
add esp, 0x10
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x1c]
push 0
push 1
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x20], eax
cmp eax, 0xffffffff
je 0x408211
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0x200
lea ecx, [ebp - 0x3c0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408211
cmp dword [ebp - 0x20], 0x200
jne 0x408211
push 8
lea eax, [ebp - 0x3bd]
push str.NTFS
push eax
call fcn.00411dd0
add esp, 0xc
test eax, eax
jne 0x408211
mov ax, word [ebp - 0x3b5]
movzx esi, byte [ebp - 0x3b3]
movsx ecx, byte [ebp - 0x380]
mov word [edi + 8], ax
movzx eax, ax
imul esi, eax
mov eax, 1
mov dword [edi + 0xc], esi
test ecx, ecx
jle 0x407e94
mov edx, esi
imul edx, ecx
jmp 0x407e9a
neg ecx
mov edx, eax
shl edx, cl
lea ecx, [edi + 0x10]
mov dword [ecx], edx
movsx ecx, byte [ebp - 0x37c]
test ecx, ecx
jle 0x407eb1
mov eax, esi
imul eax, ecx
jmp 0x407eb5
neg ecx
shl eax, cl
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x38c]
mul esi
push 0x1a0
mov ecx, eax
mov eax, dword [ebp - 0x390]
mul esi
push 0
mov dword [edi + 0x18], eax
add ecx, edx
lea eax, [ebp - 0x1c0]
mov dword [edi + 0x1c], ecx
push eax
call fcn.0040dbe0
add esp, 0xc
mov dword [ebp - method.CFileRecord.virtual_0], vtable.CFileRecord.0
lea eax, [ebp - 0x164]
push 0x40ae00
push 0x40ae10
push 0x10
push 0x14
push eax
call fcn.0040c3c0
xorps xmm0, xmm0
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xffffffff
mov dword [ebp - 0x1ac], 0xffffffff
movups xmmword [ebp - 0x1a8], xmm0
movups xmmword [ebp - 0x198], xmm0
movups xmmword [ebp - 0x188], xmm0
movups xmmword [ebp - 0x178], xmm0
push 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
push 3
mov dword [ebp - 0x168], 0x63
call fcn.004074f0
test eax, eax
jne 0x407fd4
mov dword [ebp - 4], 1
lea esi, [ebp - 0x164]
mov dword [ebp - method.CFileRecord.virtual_0], vtable.CFileRecord.0
lea edi, [eax + 0x10]
nop dword [eax]
mov ecx, esi
call fcn.0040ad20
add esi, 0x14
sub edi, 1
jne 0x407f90
mov eax, dword [ebp - 0x1b4]
mov edi, dword [ebp - 0x3c4]
test eax, eax
je 0x407fba
push 0x30
push eax
call fcn.0040bc4d
add esp, 8
push 0x40ae00
push 0x10
push 0x14
lea eax, [ebp - 0x164]
push eax
call fcn.0040bc83
jmp 0x408227
lea ecx, [ebp - 0x1c0]
call fcn.004078c0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x407ff4
mov eax, dword [eax + 4]
jmp 0x407ff6
xor eax, eax
test eax, eax
jne 0x408058
mov dword [ebp - 4], 2
lea esi, [ebp - 0x164]
mov dword [ebp - method.CFileRecord.virtual_0], vtable.CFileRecord.0
lea edi, [eax + 0x10]
mov ecx, esi
call fcn.0040ad20
add esi, 0x14
sub edi, 1
jne 0x408014
mov eax, dword [ebp - 0x1b4]
mov edi, dword [ebp - 0x3c4]
test eax, eax
je 0x40803e
push 0x30
push eax
call fcn.0040bc4d
add esp, 8
push 0x40ae00
push 0x10
push 0x14
lea eax, [ebp - 0x164]
push eax
call fcn.0040bc83
jmp 0x408227
mov eax, dword [eax + 0x28]
movzx ecx, byte [eax + 8]
movzx eax, byte [eax + 9]
shl cx, 8
or cx, ax
mov eax, 0x300
mov word [edi + 0x68], cx
cmp cx, ax
jae 0x4080d8
mov dword [ebp - 4], 3
lea esi, [ebp - 0x164]
mov dword [ebp - method.CFileRecord.virtual_0], vtable.CFileRecord.0
mov edi, 0x10
mov ecx, esi
call fcn.0040ad20
add esi, 0x14
sub edi, 1
jne 0x408094
mov eax, dword [ebp - 0x1b4]
mov edi, dword [ebp - 0x3c4]
test eax, eax
je 0x4080be
push 0x30
push eax
call fcn.0040bc4d
add esp, 8
push 0x40ae00
push 0x10
push 0x14
lea eax, [ebp - 0x164]
push eax
call fcn.0040bc83
jmp 0x408227
push 0x1a0
mov dword [edi + 0x24], 1
call fcn.0040bc1d
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x1a0
push 0
push esi
mov byte [ebp - 4], 4
call fcn.0040dbe0
add esp, 0xc
mov dword [esi], vtable.CFileRecord.0
lea eax, [esi + 0x5c]
push 0x40ae00
push 0x40ae10
push 0x10
push 0x14
push eax
call fcn.0040c3c0
mov dword [esi + 8], edi
xorps xmm0, xmm0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
movups xmmword [esi + 0x18], xmm0
mov byte [ebp - 4], 0
movups xmmword [esi + 0x28], xmm0
push 0
movups xmmword [esi + 0x38], xmm0
push 0
movups xmmword [esi + 0x48], xmm0
mov dword [esi + 0x58], 0xffffffff
mov dword [edi + 0x6c], esi
mov dword [esi + 0x58], 0x83
mov ecx, dword [edi + 0x6c]
call fcn.004074f0
test eax, eax
je 0x4081af
mov ecx, dword [edi + 0x6c]
call fcn.004078c0
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + 0xf0]
mov dword [eax + 0xf8], ecx
test ecx, ecx
je 0x408192
mov eax, dword [ecx + 4]
jmp 0x408194
xor eax, eax
mov dword [edi + 0x70], eax
test eax, eax
jne 0x4081af
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x4081a8
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x6c], 0
mov dword [ebp - 4], 5
lea esi, [ebp - 0x164]
mov dword [ebp - method.CFileRecord.virtual_0], vtable.CFileRecord.0
mov edi, 0x10
nop dword [eax + eax]
mov ecx, esi
call fcn.0040ad20
add esi, 0x14
sub edi, 1
jne 0x4081d0
mov eax, dword [ebp - 0x1b4]
mov edi, dword [ebp - 0x3c4]
test eax, eax
je 0x4081fa
push 0x30
push eax
call fcn.0040bc4d
add esp, 8
push 0x40ae00
push 0x10
push 0x14
lea eax, [ebp - 0x164]
push eax
call fcn.0040bc83
jmp 0x408227
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x408227
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x20], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bc0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4