Function at 0x40c9c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449186
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x461068]
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 - 0x44c], edi
mov dword [ebp - 0x454], ecx
xor esi, esi
mov byte [ebp - 0x441], 0
push 0x200
lea eax, [ebp - 0x240]
mov dword [ebp - 0x448], esi
push esi
push eax
call fcn.00427180
push 0x200
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.00427180
cmp byte [edi], 0
mov ecx, 0x1000
mov eax, 0xe00
push esi
cmovne eax, ecx
push eax
push dword [ebp - 0x454]
call fcn.0042a111
add esp, 0x24
test eax, eax
jne 0x40d0dd
push dword [ebp - 0x454]
push 0x200
push 1
push 0x463c70
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x40d0dd
mov ecx, 0x463c70
call fcn.00404610
movups xmm0, xmmword [edi]
xor eax, eax
mov dword [ebp - 0x458], 3
mov ecx, 0x461e1c
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 [0x463e69]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 0x473], 1
call fcn.0040dc40
push str..samara
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040dbc0
lea eax, [ebp - 0x49c]
mov ecx, 0x461e1c
push eax
call fcn.0040a210
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040bae0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x488]
cmp edx, 8
jb 0x40cb4f
mov ecx, dword [ebp - 0x49c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d10b
push edx
push ecx
call fcn.00424e9e
add esp, 8
push 0x461e1c
lea ecx, [ebp - 0x28]
call fcn.004028b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a770
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x4596dc
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00429d4a
mov edx, eax
add esp, 8
mov dword [ebp - 0x450], edx
test edx, edx
jne 0x40cba7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x45b708
jmp 0x40cff3
cmp byte [ebp - 0x474], 0
je 0x40cc55
lea ecx, [ebp - 0x49c]
call fcn.00404430
push ecx
push eax
lea edx, [ebp - 0x240]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.00404760
mov edx, dword [ebp - 0x488]
add esp, 8
cmp edx, 8
jb 0x40cc19
mov ecx, dword [ebp - 0x49c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cc0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d110
push edx
push ecx
call fcn.00424e9e
add esp, 8
push dword [ebp - 0x450]
lea eax, [ebp - 0x240]
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
je 0x40cc55
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x45b740
call fcn.0040b710
add esp, 8
mov ecx, dword [ebp - 0x450]
mov edx, edi
push 3
call fcn.00407d30
mov eax, dword [ebp - 0x44c]
xor edi, edi
add esp, 4
cmp dword [eax + 4], edi
jle 0x40cf6f
mov ecx, 0x463e64
mov dword [ebp - 0x45c], ecx
movzx edx, word [ecx + 2]
mov ax, dx
shr ax, 0xf
test dx, dx
mov word [ebp - 0x444], ax
mov eax, edx
not eax
movzx ecx, ax
mov eax, edx
cmovns ecx, eax
movzx eax, cx
mov ecx, eax
shr ax, 4
movzx edx, ax
and ecx, 0xf
mov eax, dword [ebp - 0x44c]
movzx esi, word [eax + 0xa]
movzx eax, word [eax + 0xc]
imul esi, edx
add esi, ecx
imul esi, eax
mov eax, dword [ebp - 0x45c]
movzx eax, word [eax]
push eax
mov dword [ebp - 0x478], esi
mov esi, eax
push dword [ebp - 0x478]
mov dword [ebp - 0x47c], eax
lea eax, [edi + 0x43]
push ecx
push edx
push eax
push edi
push str.part__d::__c:_cyl___d_thd___d_tsec__1_tlba___ld_tlen___d
mov dword [ebp - 0x480], esi
call fcn.0040b710
mov esi, dword [ebp - 0x448]
add esp, 0x1c
cmp byte [ebp - 0x444], 0
je 0x40cd17
push str.__WP__n
jmp 0x40cd1c
push str._____n
call fcn.0040b710
mov ecx, dword [ebp - 0x44c]
xor eax, eax
add esp, 4
cmp byte [ecx], al
push 0
setne al
add eax, dword [ebp - 0x478]
shl eax, 9
push eax
push dword [ebp - 0x454]
call fcn.0042a111
add esp, 0xc
test eax, eax
jne 0x40ce7a
mov eax, dword [ebp - 0x480]
push 0x1f4
movzx esi, ax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00427180
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 - 0x444]
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.00404610
mov esi, dword [ebp - 0x450]
lea eax, [ebp - 0x240]
push esi
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x1c
cmp eax, 0x200
jne 0x40cfe2
push dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x454]
lea eax, [ebp - 0x474]
push eax
mov edx, esi
call fcn.0040da80
add esp, 8
mov byte [ebp - 0x441], al
test al, al
jne 0x40ce59
push edi
push 0x459b44
call fcn.0040b710
mov eax, dword [ebp - 0x458]
add esp, 8
mov esi, dword [ebp - 0x448]
inc eax
add eax, dword [ebp - 0x47c]
inc esi
inc dword [ebp - 0x470]
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x458], eax
jmp 0x40ce8f
mov eax, dword [ebp - 0x458]
mov esi, dword [ebp - 0x448]
inc eax
add eax, dword [ebp - 0x47c]
inc dword [ebp - 0x470]
mov dword [ebp - 0x458], eax
jmp 0x40ce8f
push edi
push 0x459b88
call fcn.0040b710
add esp, 8
inc esi
mov dword [ebp - 0x448], esi
mov eax, dword [ebp - 0x44c]
inc edi
mov ecx, dword [ebp - 0x45c]
sub ecx, 4
mov dword [ebp - 0x45c], ecx
cmp edi, dword [eax + 4]
jl 0x40cc83
cmp byte [ebp - 0x441], 0
je 0x40cf6f
mov edi, dword [ebp - 0x450]
lea edx, [ebp - 0x474]
mov ecx, edi
call fcn.00407e70
mov eax, dword [ebp - 0x484]
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.0042a111
lea ecx, [ebp - 0x440]
call fcn.00404610
push edi
push 0x200
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0042a661
add esp, 0x1c
cmp eax, 0x200
je 0x40cf6f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x45b794
call fcn.0040b710
add esp, 8
mov byte [ebp - 0x441], 0
mov edi, dword [ebp - 0x44c]
mov eax, dword [edi + 4]
sub eax, esi
push eax
push 0x45b7c8
call fcn.0040b710
push dword [ebp - 0x450]
call fcn.00429dd7
add esp, 0xc
test esi, esi
je 0x40cfa5
push esi
push 0x459c10
call fcn.0040b710
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d091
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d087
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d115
jmp 0x40d087
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x45b794
call fcn.0040b710
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 8
jb 0x40d035
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d02b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d11a
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40d083
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d079
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d11f
push edx
push ecx
call fcn.00424e9e
add esp, 8
xor al, al
jmp 0x40d0f0
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40d0ea
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d124
push edx
push ecx
call fcn.00424e9e
add esp, 8
jmp 0x40d0ea
push 0x45b818
call fcn.0040b710
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.00424e8d
mov esp, ebp
pop ebp
ret
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
call fcn.00429c39
int3