Function at 0x40c440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c5cb
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x448], edi
mov esi, ecx
mov dword [ebp - 0x478], esi
push 0x200
lea eax, [ebp - 0x240]
mov byte [ebp - 0x441], 0
push 0
push eax
mov dword [ebp - 0x450], 0
call fcn.00427c90
push 0x200
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.00427c90
cmp byte [edi], 0
mov ecx, 0x1000
mov eax, 0xe00
push 0
cmovne eax, ecx
push eax
push esi
call fcn.0042b9eb
add esp, 0x24
test eax, eax
jne 0x40cb80
push esi
push 0x200
push 1
push 0x461cb0
call fcn.0042bbfe
add esp, 0x10
cmp eax, 0x200
jne 0x40cb80
mov ecx, 0x461cb0
call fcn.00404020
movups xmm0, xmmword [edi]
xor eax, eax
mov dword [ebp - 0x458], 3
mov ecx, 0x45ff2c
movups xmmword [ebp - 0x474], xmm0
mov dword [ebp - 0x470], eax
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x464], xmm0
mov dword [ebp - 0x466], eax
mov word [ebp - 0x462], ax
movzx eax, byte [0x461ea9]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 0x473], 1
call fcn.0040d700
push str..samara
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040d680
lea eax, [ebp - 0x4a0]
mov ecx, 0x45ff2c
push eax
call fcn.004098f0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040b530
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48c]
cmp ecx, 7
jbe 0x40c5d0
mov edx, dword [ebp - 0x4a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c5c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbae
push ecx
push edx
call fcn.00426602
add esp, 8
push 0x45ff2c
lea ecx, [ebp - 0x28]
call fcn.00402480
mov byte [ebp - 4], 3
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov eax, dword [ebp - 0x18]
cmova esi, dword [ebp - 0x28]
mov ecx, esi
lea edx, [esi + eax*2]
call fcn.0040b7f0
mov ecx, eax
sub ecx, esi
sar ecx, 1
cmp dword [ebp - 0x18], ecx
jb 0x40cbb3
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov byte [ebp - 4], 2
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ae60
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0x456ef8
cmova eax, dword [ebp - 0x28]
push eax
call fcn.0042b596
mov esi, eax
add esp, 8
mov dword [ebp - 0x454], esi
test esi, esi
jne 0x40c65b
mov ecx, 0x458f1c
jmp 0x40ca1d
cmp byte [ebp - 0x474], 0
je 0x40c704
lea ecx, [ebp - 0x4a0]
call fcn.00403e50
push ecx
push eax
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x474]
call fcn.00404160
mov ecx, dword [ebp - 0x48c]
add esp, 8
cmp ecx, 7
jbe 0x40c6cd
mov edx, dword [ebp - 0x4a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c6c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbb8
push ecx
push edx
call fcn.00426602
add esp, 8
push esi
push 0x200
lea eax, [ebp - 0x240]
push 1
push eax
call fcn.0042bffe
add esp, 0x10
cmp eax, 0x200
je 0x40c704
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 0x458f58
call fcn.0040b130
add esp, 8
push 3
mov edx, edi
mov ecx, esi
call fcn.00407680
mov esi, dword [ebp - 0x448]
xor edi, edi
add esp, 4
cmp dword [esi + 4], edi
jle 0x40cac1
mov ecx, 0x461ea4
mov dword [ebp - 0x45c], ecx
nop
movzx edx, word [ecx + 2]
mov ax, dx
shr ax, 0xf
test dx, dx
mov word [ebp - 0x44a], ax
mov eax, edx
not eax
movzx ecx, ax
mov eax, edx
cmovns ecx, eax
mov eax, dword [ebp - 0x448]
movzx edx, cx
mov ecx, edx
and edx, 0xf
shr ecx, 4
movzx esi, word [eax + 0xa]
movzx eax, word [eax + 0xc]
imul esi, ecx
mov dword [ebp - 0x480], ecx
add esi, edx
imul esi, eax
mov eax, dword [ebp - 0x45c]
movzx eax, word [eax]
push eax
push esi
mov ecx, eax
mov dword [ebp - 0x47c], eax
push edx
mov dword [ebp - 0x484], ecx
lea eax, [edi + 0x43]
mov ecx, dword [ebp - 0x480]
push ecx
push eax
push edi
push str.part__d::__c:_cyl___d_thd___d_tsec__1_tlba___ld_tlen___d
call fcn.0040b130
cmp byte [ebp - 0x44a], 0
mov ecx, str.__WP__n
mov eax, str._____n
cmovne eax, ecx
push eax
call fcn.0040b130
mov ecx, dword [ebp - 0x448]
xor eax, eax
push 0
cmp byte [ecx], al
setne al
add eax, esi
shl eax, 9
push eax
push dword [ebp - 0x478]
call fcn.0042b9eb
add esp, 0x2c
test eax, eax
jne 0x40c914
mov eax, dword [ebp - 0x484]
push 0x1f4
movzx esi, ax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00427c90
mov ecx, dword [ebp - 0x470]
mov word [ebp - 0x23e], si
mov dword [ebp - 0x23a], 0x2000400
lea eax, [ecx + 2]
mov word [ebp - 0x240], ax
mov ax, word [ebp - 0x44a]
movzx eax, al
add ax, ax
mov word [ebp - 0x23c], ax
mov eax, 0x1900
mov word [ebp - 0x236], ax
mov eax, dword [ebp - 0x458]
mov word [ebp + ecx*4 - 0x43a], ax
shr eax, 0x10
mov word [ebp + ecx*4 - 0x438], ax
lea ecx, [ebp - 0x240]
call fcn.00404020
mov esi, dword [ebp - 0x454]
lea eax, [ebp - 0x240]
push esi
push 0x200
push 1
push eax
call fcn.0042bffe
add esp, 0x1c
cmp eax, 0x200
jne 0x40ca18
push dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x474]
push eax
mov edx, esi
call fcn.0040d530
add esp, 8
mov byte [ebp - 0x441], al
test al, al
jne 0x40c8f3
push edi
push 0x45735c
call fcn.0040b130
mov eax, dword [ebp - 0x458]
add esp, 8
mov esi, dword [ebp - 0x450]
inc eax
add eax, dword [ebp - 0x47c]
inc esi
inc dword [ebp - 0x470]
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x458], eax
jmp 0x40c92f
mov eax, dword [ebp - 0x458]
mov esi, dword [ebp - 0x450]
inc eax
add eax, dword [ebp - 0x47c]
inc dword [ebp - 0x470]
mov dword [ebp - 0x458], eax
jmp 0x40c92f
push edi
push 0x4573a0
call fcn.0040b130
mov esi, dword [ebp - 0x450]
add esp, 8
inc esi
mov dword [ebp - 0x450], esi
mov eax, dword [ebp - 0x448]
inc edi
mov ecx, dword [ebp - 0x45c]
sub ecx, 4
mov dword [ebp - 0x45c], ecx
cmp edi, dword [eax + 4]
jl 0x40c730
cmp byte [ebp - 0x441], 0
mov edi, dword [ebp - 0x454]
je 0x40cacf
lea edx, [ebp - 0x474]
mov ecx, edi
call fcn.004077c0
mov eax, dword [ebp - 0x488]
mov ecx, 0x400
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x468]
imul eax, dword [ebp - 0x46a]
push 0
mov word [ebp - 0x43e], ax
mov al, byte [ebp - 0x46a]
dec al
cmp byte [ebp - 0x474], 0
mov byte [ebp - 0x43b], al
mov al, byte [ebp - 0x468]
mov byte [ebp - 0x43c], al
mov eax, 0x200
cmovne eax, ecx
push eax
push edi
call fcn.0042b9eb
lea ecx, [ebp - 0x440]
call fcn.00404020
push edi
push 0x200
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0042bffe
add esp, 0x1c
cmp eax, 0x200
je 0x40cac9
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 0x458fac
call fcn.0040b130
add esp, 8
mov byte [ebp - 0x441], 0
jmp 0x40cac9
mov ecx, 0x458fac
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push ecx
call fcn.0040b130
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 7
jbe 0x40ca6c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ca62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbbd
push ecx
push edx
call fcn.00426602
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x40caba
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cab0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbbd
push ecx
push edx
call fcn.00426602
add esp, 8
xor al, al
jmp 0x40cb93
mov edi, dword [ebp - 0x454]
xor esi, esi
mov eax, dword [ebp - 0x448]
mov eax, dword [eax + 4]
sub eax, esi
push eax
push 0x458fe0
call fcn.0040b130
push edi
call fcn.0042b6d2
add esp, 0xc
test esi, esi
je 0x40cafa
push esi
push 0x457428
call fcn.0040b130
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40cb34
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbbd
push ecx
push edx
call fcn.00426602
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x40cb8d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cbbd
push ecx
push edx
call fcn.00426602
add esp, 8
jmp 0x40cb8d
push 0x459030
call fcn.0040b130
add esp, 4
mov al, byte [ebp - 0x441]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004265f4
mov esp, ebp
pop ebp
ret
call fcn.0042b48f
call fcn.00401ae0
call fcn.0042b48f
call fcn.0042b48f
int3