Function at 0x40b9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [sym.imp.msvcrt.dll__tempnam]
mov dword [esp + 4], 0x45a6e1
mov dword [esp], 0x45a6e5
mov dword [ebp - 0x22c], eax
call eax
mov edi, dword [sym.imp.msvcrt.dll__open]
mov dword [esp + 8], 0x180
mov ebx, eax
mov dword [esp + 4], 0x8302
mov dword [esp], eax
call edi
mov dword [esp + 4], 0x4df
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x228], eax
call eax
mov eax, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cant_open__s:__d_n
mov dword [esp + 0xc], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x4e1
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov ecx, dword [sym.imp.msvcrt.dll__write]
mov dword [esp], esi
mov dword [esp + 8], 0x2b
mov dword [ebp - 0x234], ecx
mov dword [esp + 4], str.This_is_test_file_write_read_r_nsecond_line_r_n
call ecx
mov dword [esp + 4], str._write__O_BINARY_bad_return_value_n
cmp eax, 0x2b
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov eax, dword [sym.imp.msvcrt.dll__close]
mov dword [esp], esi
mov dword [ebp - 0x220], eax
call eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8000
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x4e6
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
mov ecx, dword [sym.imp.msvcrt.dll__read]
mov dword [esp], esi
lea edx, [ebp - 0x218]
mov dword [esp + 4], edx
mov dword [ebp - 0x21c], ecx
mov dword [esp + 8], 0x29
call ecx
mov dword [esp + 4], str._read__O_BINARY_got_bad_length_n
cmp eax, 0x29
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x4e8
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp + 8], 0x29
mov dword [esp + 4], edx
mov dword [esp], str.This_is_test_file_write_read_r_nsecond_line_r_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_BINARY___write____read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
mov dword [esp + 4], 0x4000
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x4ec
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp], esi
mov ecx, dword [ebp - 0x21c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x29
call ecx
mov dword [esp + 4], str._read__O_TEXT_got_bad_length_n
cmp eax, 0x28
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x4ee
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp + 8], 0x28
mov dword [esp + 4], edx
mov dword [esp], str.This_is_test_file_write_read_nsecond_line_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_BINARY__write____O_TEXT__read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
mov dword [esp + 8], 0x180
mov dword [esp + 4], 0x4302
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x4f3
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
mov edx, dword [ebp - 0x228]
call edx
mov eax, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cant_open__s:__d_n
mov dword [esp + 0xc], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x4f5
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov edx, dword [ebp - 0x234]
mov dword [esp], esi
mov dword [esp + 8], 0x29
mov dword [esp + 4], str.This_is_test_file_write_read_nsecond_line_n
call edx
mov dword [esp + 4], str._write__O_TEXT_bad_return_value_n
cmp eax, 0x29
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8000
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x4f9
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp], esi
mov ecx, dword [ebp - 0x21c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x200
call ecx
mov dword [esp + 4], str._read__O_BINARY_got_bad_length_n
cmp eax, 0x2b
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x4fb
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp + 8], 0x2b
mov dword [esp + 4], edx
mov dword [esp], str.This_is_test_file_write_read_r_nsecond_line_r_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_TEXT__write____O_BINARY__read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x4fd
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
cmp byte [ebp - 0x1ef], 0xd
mov dword [esp + 4], str.CR_not_written_or_read_n
sete al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
mov dword [ebp - 0x224], edi
mov dword [esp + 4], 0x4000
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x500
lea edi, [ebp - 0x218]
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp], esi
mov ecx, dword [ebp - 0x21c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x200
call ecx
mov dword [esp + 4], str._read__O_TEXT_got_bad_length_n
cmp eax, 0x29
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x502
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp + 8], 0x29
mov dword [esp + 4], edx
mov dword [esp], str.This_is_test_file_write_read_nsecond_line_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_TEXT__write____read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov esi, dword [ebp - 0x220]
call esi
xor eax, eax
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x224]
mov dword [esp + 4], 0xa
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x508
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
mov dword [esp], esi
mov edi, dword [sym.imp.msvcrt.dll__tell]
call edi
mov dword [esp], esi
mov dword [ebp - 0x230], eax
call edi
mov edx, dword [ebp - 0x230]
mov dword [esp + 4], str.bad_position__lu_expecting_0_n
test eax, eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x509
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp], esi
mov ecx, dword [ebp - 0x21c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x200
call ecx
mov dword [esp + 4], str._read__O_APPEND_got_bad_length_n
cmp eax, 0x29
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x50a
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea edx, [ebp - 0x218]
mov dword [esp + 8], 0x29
mov dword [esp + 4], edx
mov dword [esp], str.This_is_test_file_write_read_nsecond_line_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_APPEND__read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov esi, dword [ebp - 0x220]
call esi
mov dword [esp + 4], 0x4000
mov eax, dword [ebp - 0x224]
mov dword [esp], ebx
call eax
mov dword [esp + 8], 2
mov esi, eax
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__lseek]
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x230], eax
call eax
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x21c]
mov dword [esp], esi
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
call ecx
mov dword [esp + 4], 0x511
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x238]
xor edx, edx
cmp eax, 1
jne 0x40bfd8
xor edx, edx
cmp byte [ebp - 0x218], 0xa
sete dl
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._read_expected_1_got_bad_length:__d_n
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffffffe
call eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x514
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x238]
xor edx, edx
cmp eax, 1
jne 0x40c057
xor edx, edx
cmp byte [ebp - 0x218], 0xa
sete dl
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._read_expected__n_got_bad_length:__d_n
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffffffe
call eax
lea edx, [ebp - 0x218]
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x21c]
mov dword [esp + 4], edx
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x517
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
movsx ecx, byte [ebp - 0x218]
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], str._read_returned__d__buf:__d_n
cmp cl, 0xa
mov dword [esp + 8], eax
sete dl
cmp eax, 1
mov dword [esp + 0xc], ecx
sete al
movzx eax, al
and eax, edx
mov dword [esp], eax
call fcn.0044cad0
lea edx, [ebp - 0x218]
mov dword [esp], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call eax
mov dword [esp + 4], 0x519
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], str._read_returned__d__expected_0_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov ecx, dword [ebp - 0x230]
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffffffd
mov dword [esp], esi
call ecx
lea ecx, [ebp - 0x218]
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x21c]
mov dword [esp + 4], ecx
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x51c
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x238]
xor edx, edx
cmp eax, 1
jne 0x40c1b7
xor edx, edx
cmp byte [ebp - 0x218], 0x65
sete dl
lea ecx, [ebp - 0x218]
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str._read_expected_e_got___.s__bad_length:__d_n
call fcn.0044cad0
mov dword [esp + 4], 0x51d
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov dword [esp], esi
call edi
mov dword [esp], esi
mov dword [ebp - 0x238], eax
call edi
mov edx, dword [ebp - 0x238]
mov dword [esp + 4], str.bad_position__lu_expecting_41_n
cmp eax, 0x29
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffffffd
call eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x520
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x238]
xor edx, edx
cmp eax, 1
jne 0x40c28b
xor edx, edx
cmp byte [ebp - 0x218], 0x65
sete dl
lea ecx, [ebp - 0x218]
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str._read_expected_e_got___.s__bad_length:__d_n
call fcn.0044cad0
mov dword [esp + 4], 0x521
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov dword [esp], esi
call edi
mov dword [esp], esi
mov dword [ebp - 0x238], eax
call edi
mov edx, dword [ebp - 0x238]
mov dword [esp + 4], str.bad_position__lu_expecting_42_n
cmp eax, 0x2a
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 2
mov dword [esp + 4], 0xfffffffd
call eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x524
mov dword [esp], 0x45a2c0
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x238]
xor edx, edx
cmp eax, 2
jne 0x40c35f
xor edx, edx
cmp byte [ebp - 0x218], 0x65
sete dl
lea ecx, [ebp - 0x218]
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str._read_expected_e_got___.s__bad_length:__d_n
call fcn.0044cad0
mov dword [esp + 4], 0x525
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov dword [esp], esi
call edi
mov dword [esp], esi
mov dword [ebp - 0x238], eax
call edi
mov edx, dword [ebp - 0x238]
mov dword [esp + 4], str.bad_position__lu_expecting_43_n
cmp eax, 0x2b
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov edi, dword [ebp - 0x220]
mov dword [esp], esi
call edi
mov eax, dword [sym.imp.msvcrt.dll__unlink]
mov dword [esp], ebx
mov dword [ebp - 0x240], eax
call eax
mov dword [esp + 4], 0x529
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
mov eax, dword [ebp - 0x228]
call eax
mov eax, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cant_unlink__s:__d_n
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.0044cad0
mov esi, dword [sym.imp.msvcrt.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x23c], esi
call esi
mov esi, dword [ebp - 0x22c]
mov dword [esp], 0x45a6e5
mov dword [esp + 4], 0x45a6e1
call esi
mov dword [esp + 8], pe_nt_image_headers32
mov esi, eax
mov dword [ebp - 0x22c], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], 0x8302
call eax
mov dword [esp + 4], 0x52e
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov ecx, dword [ebp - 0x228]
call ecx
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Cant_open__s:__d_n
mov dword [esp + 0xc], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x530
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov ecx, dword [ebp - 0x234]
mov dword [esp], ebx
mov dword [esp + 8], 0x2b
mov dword [esp + 4], str.This_is_test_file_write_read_r_nsecond_line_r_n
call ecx
mov dword [esp + 4], str._write__O_BINARY_bad_return_value_n
cmp eax, 0x2b
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
call edi
mov dword [esp], esi
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8000
call eax
mov dword [esp + 4], 0x534
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
lea ecx, [ebp - 0x218]
mov dword [esp], ebx
mov edx, dword [ebp - 0x21c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x200
call edx
mov dword [esp + 4], str._read__O_BINARY_got_bad_length_n
cmp eax, 0x2b
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x536
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea ecx, [ebp - 0x218]
mov dword [esp + 8], 0x2b
mov dword [esp + 4], ecx
mov dword [esp], str.This_is_test_file_write_read_r_nsecond_line_r_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_BINARY__write____read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x538
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
cmp byte [ebp - 0x1ef], 0xd
mov dword [esp + 4], str.CR_not_written_or_read_n
sete al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
call edi
mov dword [esp], esi
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], 0x4000
call eax
mov dword [esp + 4], 0x53b
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
lea ecx, [ebp - 0x218]
mov dword [esp], ebx
mov edx, dword [ebp - 0x21c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x200
call edx
mov dword [esp + 4], str._read__O_TEXT_got_bad_length_n
cmp eax, 0x29
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x53d
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea ecx, [ebp - 0x218]
mov dword [esp + 8], 0x29
mov dword [esp + 4], ecx
mov dword [esp], str.This_is_test_file_write_read_nsecond_line_n
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], str.problems_with__O_BINARY__write____O_TEXT__read_n
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
xor ebx, ebx
call edi
mov dword [esp], esi
mov eax, dword [ebp - 0x224]
mov edi, 0x54
mov dword [esp + 4], 0x4000
call eax
mov esi, eax
jmp 0x40c6b7
movzx edi, byte [ebx + str.This_is_test_file_write_read_nsecond_line_n]
lea eax, [ebp - 0x218]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x546
mov dword [esp], 0x45a2c0
call fcn.0044c860
movzx eax, byte [ebp - 0x218]
mov edx, edi
mov dword [esp + 8], ebx
movsx ecx, dl
mov dword [esp + 4], str._read_failed_at_pos__d_0x_02x_vs_0x_02x_n
cmp al, dl
mov dword [esp + 0x10], ecx
movsx ecx, al
sete al
mov dword [esp + 0xc], ecx
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
cmp ebx, 0x29
jne 0x40c6b0
mov ebx, dword [ebp - 0x21c]
lea esi, [esi]
lea eax, [ebp - 0x218]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
test eax, eax
jne 0x40c730
mov dword [ebp - 0x21c], ebx
mov edi, dword [ebp - 0x220]
mov dword [esp], esi
call edi
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x224]
mov dword [esp + 4], 0x4000
mov dword [esp], esi
call ecx
lea edx, [ebp - 0x218]
mov dword [esp + 8], 0x29
mov dword [esp + 4], edx
mov ebx, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x21c]
call eax
mov dword [esp + 4], 0x54e
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0x28
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_i__d_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
call edi
mov eax, dword [0x46d7ac]
test eax, eax
je 0x40d3b0
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x224]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x10301
mov dword [esp], esi
call ecx
mov dword [esp + 4], 0x555
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov edx, dword [ebp - 0x228]
call edx
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
mov edx, dword [ebp - 0x234]
mov dword [esp], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x45aa3a
call edx
mov dword [esp + 4], 0x557
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._write_returned__d__expected__1_n
mov dword [esp], eax
call fcn.0044cad0
mov edx, dword [ebp - 0x234]
mov dword [esp], ebx
mov dword [esp + 8], 6
mov dword [esp + 4], 0x45aa5d
call edx
mov dword [esp + 4], 0x559
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 6
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._write_returned__d__expected_6_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
call edi
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8000
mov dword [esp], esi
lea esi, [ebp - 0x218]
call ecx
mov dword [esp + 4], 0x55d
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov edx, dword [ebp - 0x228]
call edx
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 0x200
mov dword [esp], ebx
call eax
mov dword [esp + 4], 0x55f
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xa
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_returned__d__expected_10_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x560
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov eax, dword [0x45aaa4]
cmp dword [ebp - 0x218], eax
je 0x40d381
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.btext_is_incorrect_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10000
mov dword [esp], eax
mov eax, dword [ebp - 0x224]
call eax
mov dword [esp + 4], 0x564
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov edi, dword [ebp - 0x228]
call edi
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
call edi
mov dword [eax], 0xdeadbeef
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 3
mov dword [esp], ebx
call eax
mov dword [esp + 4], 0x567
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_returned__d__expected__1_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x568
mov dword [esp], 0x45a2c0
call fcn.0044c860
call edi
mov esi, dword [eax]
call edi
mov dword [esp + 4], 0x45a2ee
mov dword [esp + 8], esi
cmp dword [eax], 0x16
lea esi, [ebp - 0x218]
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 0x200
mov dword [esp], ebx
call eax
mov dword [esp + 4], 0x56a
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 6
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_returned__d__expected_6_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x56b
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov eax, dword [0x45aa5d]
cmp dword [ebp - 0x218], eax
je 0x40d366
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.btext_is_incorrect_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x224]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x40301
mov dword [esp], ecx
call edx
mov dword [esp + 4], 0x56f
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov edi, dword [ebp - 0x228]
call edi
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
call edi
mov esi, dword [ebp - 0x234]
mov dword [eax], 0xdeadbeef
mov dword [esp], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x45aa3a
call esi
mov dword [esp + 4], 0x572
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._write_returned__d__expected__1_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x573
mov dword [esp], 0x45a2c0
call fcn.0044c860
call edi
mov esi, dword [eax]
call edi
mov dword [esp + 4], 0x45a2ee
mov dword [esp + 8], esi
cmp dword [eax], 0x16
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov esi, dword [ebp - 0x234]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x45ab03
call esi
mov dword [esp + 4], 0x575
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 6
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._write_returned__d__expected_6_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8000
mov dword [esp], ecx
call edx
mov dword [esp + 4], 0x579
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
call edi
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
lea eax, [ebp - 0x218]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], ebx
call eax
mov dword [esp + 4], 0x57b
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 7
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_returned__d__expected_7_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x57c
mov dword [esp], 0x45a2c0
call fcn.0044c860
cmp dword [ebp - 0x218], 0x61bfbbef
je 0x40d343
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.btext_is_incorrect_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10000
mov dword [esp], eax
mov eax, dword [ebp - 0x224]
call eax
mov dword [esp + 4], 0x580
mov dword [esp], 0x45a2c0
mov esi, eax
mov dword [ebp - 0x238], eax
call fcn.0044c860
mov eax, dword [ebp - 0x228]
call eax
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
lea eax, [ebp - 0x218]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], esi
call eax
mov dword [esp + 4], 0x582
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
xor eax, eax
cmp ebx, 6
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str._read_returned__d__expected_6_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x583
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov eax, dword [0x45ab03]
cmp dword [ebp - 0x218], eax
je 0x40d328
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.btext_is_incorrect_n
mov edi, 0x45ab33
mov dword [esp], eax
call fcn.0044cad0
mov esi, dword [ebp - 0x238]
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov eax, dword [ebp - 0x230]
mov dword [esp], esi
call eax
lea eax, [ebp - 0x218]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 4
call eax
mov esi, dword [str.windows]
mov ecx, 5
mov ebx, eax
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044cc40
jmp 0x40cf05
mov dword [esp + 4], 0x588
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str._read_returned__d__expected__1_n
mov dword [esp], eax
call fcn.0044cad0
call fcn.0044cc90
call fcn.0044cc70
test eax, eax
jne 0x40ced0
mov esi, dword [ebp - 0x238]
mov dword [esp + 8], 0
mov dword [esp + 4], 6
mov eax, dword [ebp - 0x230]
mov dword [esp], esi
call eax
lea eax, [ebp - 0x218]
mov dword [esp], esi
mov edi, dword [ebp - 0x21c]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
call edi
mov dword [esp + 4], 0x58c
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
xor eax, eax
cmp ebx, 2
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str._read_returned__d__expected_2_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x58d
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
cmp word [ebp - 0x218], 0x62
mov dword [esp + 4], str.btext_is_incorrect_n
sete al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x220]
call eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x224]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x8301
mov dword [esp], ecx
call edx
mov dword [esp + 4], 0x591
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov esi, dword [ebp - 0x228]
call esi
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x234]
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x45ab57
call eax
mov dword [esp + 4], 0x593
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xc
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._write_returned__d__expected_9_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10000
mov dword [esp], ecx
call edx
mov dword [esp + 4], 0x597
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov esi, dword [ebp - 0x228]
call esi
mov eax, dword [eax]
mov dword [esp + 4], str._open_failed_with_error:__d_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0044cad0
lea eax, [ebp - 0x218]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov dword [esp + 4], 0x599
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xc
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_returned__d__expected_12_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x59a
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov eax, dword [0x45aba4]
cmp dword [ebp - 0x218], eax
je 0x40d2ff
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.btext_is_incorrect_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
call eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], ebx
call eax
mov dword [esp + 4], 0x59f
mov dword [esp], 0x45a2c0
mov esi, eax
call fcn.0044c860
xor eax, eax
cmp esi, 0xa
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._read_returned__d__expected_10_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x5a1
mov dword [esp], 0x45a2c0
call fcn.0044c860
xor eax, eax
cmp word [ebp - 0x218], 0xfffd
mov dword [esp + 4], str.invalid_UTF8_character_was_not_replaced_by_UFFFD_n
sete al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp + 4], 0x5a2
mov dword [esp], 0x45a2c0
call fcn.0044c860
lea eax, [ebp + esi - 0x220]
mov ecx, dword [0x45abe7]
cmp dword [eax], ecx
je 0x40d2e9
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.btext_is_incorrect_n
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], ebx
mov eax, dword [ebp - 0x220]
call eax
mov esi, dword [ebp - 0x22c]
mov dword [esp + 4], 0x180
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__chmod]
mov dword [esp + 4], 0x5ab
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
mov edi, dword [ebp - 0x228]
call edi
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Cant_chmod__s_to_read_write:__d_n
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x240]
call eax
mov dword [esp + 4], 0x5ae
mov dword [esp], 0x45a2c0
mov ebx, eax
call fcn.0044c860
call edi
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Cant_unlink__s:__d_n
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
sete al
mov dword [esp], eax
call fcn.0044cad0
mov dword [esp], esi
mov eax, dword [ebp - 0x23c]
call eax
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x45abeb]
cmp dword [eax + 4], esi
jne 0x40d216
xor eax, eax
jmp 0x40d21b
mov eax, dword [0x45aba8]
cmp dword [ebp - 0x214], eax
jne 0x40d13a
mov eax, dword [0x45abac]
cmp dword [ebp - 0x210], eax
jne 0x40d13a
xor eax, eax
jmp 0x40d13f
movzx eax, word [0x45ab07]
cmp word [ebp - 0x214], ax
jne 0x40ce4f
xor eax, eax
jmp 0x40ce54
cmp word [ebp - 0x214], 0xa0d
jne 0x40cd55
xor eax, eax
cmp byte [ebp - 0x212], 0x62
jne 0x40cd55
jmp 0x40cd5a
movzx eax, word [0x45aa61]
cmp word [ebp - 0x214], ax
jne 0x40cb27
xor eax, eax
jmp 0x40cb2c
mov eax, dword [0x45aaa8]
cmp dword [ebp - 0x214], eax
jne 0x40c9a5
movzx eax, word [0x45aaac]
cmp word [ebp - 0x210], ax
jne 0x40c9a5
xor eax, eax
jmp 0x40c9aa
mov dword [esp + 4], 0x5a7
mov dword [esp], 0x45a2c0
call fcn.0044c860
mov dword [esp], str.unicode_mode_tests_on_file_n
call fcn.0044cbe0
jmp 0x40d239