Function at 0x40befd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20f0
call fcn.0040fc90
push edi
and dword [ebp - 0x60], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0x8020
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll__dup]
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40bf55
push dword [ebp + 8]
push str._cdiff_apply:_Cant_duplicate_descriptor__d_n
call fcn.0040f051
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bf85
push str._cdiff_apply:_Cant_allocate_memory_for_line_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR110.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40bfbf
push str._cdiff_apply:_Cant_allocate_memory_for_lbuf_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
movzx eax, word [ebp + 0xc]
cmp eax, 1
jne 0x40c6d9
push 2
push 0xfffffea2
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40c01b
push 0xfffffea2
push str._cdiff_apply:_lseek_desc___d__SEEK_END__failed_n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push dword [ebp - 0x10]
push 0
push dword [ebp - 4]
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0x15e
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0xc
cmp eax, 0x15e
je 0x40c07d
push 0x15e
push str._cdiff_apply:_Cant_read__d_bytes_n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov dword [ebp - 0x14], 0x15d
jmp 0x40c08d
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x40c0b2
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movsx eax, byte [eax]
cmp eax, 0x3a
jne 0x40c0b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x60], eax
jmp 0x40c0b2
jmp 0x40c086
cmp dword [ebp - 0x60], 0
jne 0x40c0e9
push str._cdiff_apply:_No_digital_signature_in_cdiff_file_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
lea eax, [ebp - 0xf0]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__fstat64i32]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40c131
push str._cdiff_apply:_Cant_fstat_file_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, 0x15e
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xdc]
sub ecx, eax
mov dword [ebp - 0x5c], ecx
jns 0x40c177
push str._cdiff_apply:_compressed_data_end_offset___0_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40c1bd
push str._cdiff_apply:_lseek_desc__0__SEEK_SET__failed_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
call sub.libeay32.dll_EVP_MD_CTX_create
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c1f1
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push 0
call sub.libeay32.dll_EVP_sha256
push eax
push dword [ebp - 0x20]
call sub.libeay32.dll_EVP_DigestInit_ex
add esp, 0xc
and dword [ebp - 0x54], 0
push 0x2000
lea eax, [ebp - 0x20f0]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jle 0x40c271
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x5c]
jl 0x40c251
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x20f0]
push eax
push dword [ebp - 0x20]
call sub.libeay32.dll_EVP_DigestUpdate
add esp, 0xc
jmp 0x40c271
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20f0]
push eax
push dword [ebp - 0x20]
call sub.libeay32.dll_EVP_DigestUpdate
add esp, 0xc
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
jmp 0x40c208
push 0
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0x20]
call sub.libeay32.dll_EVP_DigestFinal_ex
add esp, 0xc
push dword [ebp - 0x20]
call sub.libeay32.dll_EVP_MD_CTX_destroy
pop ecx
push str.100002053
push str.14783905874077467090262228516557917570254599638376203532031989214105552847269687489771975792123442185817287694951949800908791527542017115600501303394778618535864845235700041590056318230102449612217458549016089313306591388590790796515819654102320725712300822356348724011232654837503241736177907784198700834440681124727060540035754699658105895050096576226753008596881698828185652424901921668758326578462003247906470982092298106789657211905488986281078346361469524484829559560886227198091995498440676639639830463593211386055065360288422394053998134458623712540683294034953818412458362198117811990006021989844180721010947
push dword [ebp - 0x60]
lea eax, [ebp - 0xc0]
push eax
call sub.libav.dll_Ordinal_44216
add esp, 0x10
test eax, eax
je 0x40c2df
push str._cdiff_apply:_Incorrect_digital_signature_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40c325
push str._cdiff_apply:_lseek_desc__0__SEEK_SET__failed_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0x1fff
jge 0x40c37f
push 1
mov eax, dword [ebp - 0x24]
lea eax, [ebp + eax - 0x20f0]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0xc
test eax, eax
jle 0x40c37f
mov eax, dword [ebp - 0x24]
movsx eax, byte [ebp + eax - 0x20f0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x6c], 0x3a
jne 0x40c37d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x40c37d
jmp 0x40c37f
jmp 0x40c32d
mov eax, dword [ebp - 0x24]
mov byte [ebp + eax - 0x20f0], 0
lea eax, [ebp - 0x84]
push eax
push str.ClamAV_Diff:_u:_u:
lea eax, [ebp - 0x20f0]
push eax
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x40c3dc
push str._cdiff_apply:_Incorrect_file_format_n
call fcn.0040f051
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push 0x415ef8
push dword [ebp - 0xc]
call sub.libav.dll_Ordinal_44292
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40c429
push dword [ebp - 0xc]
push str._cdiff_apply:_Cant_gzdopen_descriptor__d_n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40c6cb
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
jae 0x40c44d
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x64], eax
jmp 0x40c453
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x74]
push dword [ebp - 4]
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44291
add esp, 0xc
test eax, eax
jne 0x40c4b1
mov eax, dword [ebp - 0x18]
inc eax
push eax
push str._cdiff_apply:_Premature_EOF_at_line__d_n
call fcn.0040f051
pop ecx
pop ecx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dab6
pop ecx
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44293
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ebp - 0x19], al
inc dword [ebp - 0x30]
cmp byte [ebp - 0x19], 0
jne 0x40c4be
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44214
pop ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x48]
mov al, byte [eax]
mov byte [ebp - 0x1a], al
inc dword [ebp - 0x48]
cmp byte [ebp - 0x1a], 0
jne 0x40c501
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x88]
mov dword [ebp - 0x68], eax
jne 0x40c525
jmp 0x40c432
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + eax]
cmp eax, 0x23
jne 0x40c65f
push 6
push str.LSIZE
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40c65a
lea eax, [ebp - 0x10]
push eax
push str.LSIZE__u
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x40c65a
cmp dword [ebp - 0x10], 0x8020
jb 0x40c586
cmp dword [ebp - 0x10], 0xa00000
jbe 0x40c5a1
push dword [ebp - 0x10]
push str.cdiff_apply:_Ignoring_new_buffer_size_request___invalid_size__d_n
call fcn.0040f051
pop ecx
pop ecx
mov dword [ebp - 0x10], 0x8020
jmp 0x40c432
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_realloc]
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_realloc]
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x3c], 0
je 0x40c5cf
cmp dword [ebp - 0x58], 0
jne 0x40c64e
push dword [ebp - 0x10]
push str._cdiff_apply:_Cant_resize_line_buffer_to__d_bytes_n
call fcn.0040f051
pop ecx
pop ecx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dab6
pop ecx
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44293
pop ecx
cmp dword [ebp - 0x3c], 0
jne 0x40c616
cmp dword [ebp - 0x58], 0
jne 0x40c616
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x40c646
cmp dword [ebp - 0x3c], 0
jne 0x40c632
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 0x58]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x40c646
push dword [ebp - 0x3c]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
jmp 0x40c432
push dword [ebp - 0x10]
push dword [ebp - 8]
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 4]
call fcn.0040dc96
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40c6bf
push dword [ebp - 0x18]
push str._cdiff_apply:_Error_executing_command_at_line__d_n
call fcn.0040f051
pop ecx
pop ecx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dab6
pop ecx
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44293
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x40c432
push dword [ebp - 0x28]
call sub.libav.dll_Ordinal_44293
pop ecx
jmp 0x40c92f
push 0x415ef8
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__fdopen]
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40c727
push dword [ebp - 0xc]
push str._cdiff_apply:_fdopen___failed_for_descriptor__d_n
call fcn.0040f051
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push dword [ebp - 0x40]
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_fgets]
add esp, 0xc
test eax, eax
je 0x40c925
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 4]
call sub.libav.dll_Ordinal_44214
pop ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x44]
mov al, byte [eax]
mov byte [ebp - 0x1b], al
inc dword [ebp - 0x44]
cmp byte [ebp - 0x1b], 0
jne 0x40c75e
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
jne 0x40c77c
jmp 0x40c727
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + eax]
cmp eax, 0x23
jne 0x40c8bb
push 6
push str.LSIZE
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40c8b6
lea eax, [ebp - 0x10]
push eax
push str.LSIZE__u
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x40c8b6
cmp dword [ebp - 0x10], 0x8020
jb 0x40c7dd
cmp dword [ebp - 0x10], 0xa00000
jbe 0x40c7f8
push dword [ebp - 0x10]
push str.cdiff_apply:_Ignoring_new_buffer_size_request___invalid_size__d_n
call fcn.0040f051
pop ecx
pop ecx
mov dword [ebp - 0x10], 0x8020
jmp 0x40c727
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_realloc]
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_realloc]
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x38], 0
je 0x40c82a
cmp dword [ebp - 0x50], 0
jne 0x40c8aa
push dword [ebp - 0x10]
push str._cdiff_apply:_Cant_resize_line_buffer_to__d_bytes_n
call fcn.0040f051
pop ecx
pop ecx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dab6
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_fclose]
pop ecx
cmp dword [ebp - 0x38], 0
jne 0x40c872
cmp dword [ebp - 0x50], 0
jne 0x40c872
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x40c8a2
cmp dword [ebp - 0x38], 0
jne 0x40c88e
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x40c8a2
push dword [ebp - 0x38]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
jmp 0x40c727
push dword [ebp - 0x10]
push dword [ebp - 8]
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 4]
call fcn.0040dc96
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40c919
push dword [ebp - 0x18]
push str._cdiff_apply:_Error_executing_command_at_line__d_n
call fcn.0040f051
pop ecx
pop ecx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dab6
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_fclose]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x40c985
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x40c727
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_fclose]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
cmp dword [ebp - 0xa0], 0
je 0x40c970
push dword [ebp - 0xa0]
push str.cdiff_apply:_File__s_was_not_properly_closed_n
call fcn.0040f051
pop ecx
pop ecx
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dab6
pop ecx
or eax, 0xffffffff
jmp 0x40c985
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
push str.cdiff_apply:_Parsed__d_lines_and_executed__d_commands_n
call fcn.0040f051
add esp, 0xc
xor eax, eax
pop edi
leave
ret