Function at 0x42b7e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x149c
call fcn.0042dfd0
push ebx
push esi
push edi
lea edi, [ebp - 0x149c]
mov ecx, 0x527
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1458]
mov dword [ebp - 0x145c], eax
push 0x30
push 0
lea ecx, [ebp - 0x1458]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0
mov esi, esp
push 0x44ca14
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x1428], eax
cmp dword [ebp - 0x1428], 0
jne 0x42b87e
movsx eax, word [0x452920]
add eax, 0x12
mov esi, esp
push eax
push str.error__d..
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
mov dword [ebp - 0x14], 0
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x1428]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
mov edx, dword [ebp - 0x1428]
push edx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 8], eax
mov esi, esp
push 2
push 0
mov ecx, dword [ebp - 0x1428]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
mov edx, dword [ebp - 0x1428]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x141c], eax
mov esi, esp
mov eax, dword [ebp - 0x1428]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
cmp dword [ebp - 8], 0
jg 0x42b92b
mov eax, 0xfffffc13
jmp 0x42be84
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x141c], 4
ja 0x42b966
movsx edx, word [0x452920]
add edx, 0x22
mov esi, esp
push edx
push str.error__d:total_0
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x18]
jae 0x42b9a1
mov esi, esp
mov ecx, dword [ebp - 0x18]
push ecx
movsx edx, word [0x452920]
add edx, 0x26
push edx
push str.error__d:total_attr_size_attr_size_d_
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x204]
jbe 0x42b9e9
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x204]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
movsx edx, word [0x452920]
add edx, 0x2a
push edx
push str.error__d:attr_size_d_filesystem_max_d
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
cmp dword [ebp - 0x18], 4
jae 0x42ba1b
movsx eax, word [0x452920]
add eax, 0x2e
mov esi, esp
push eax
push str.error__d:attr_size_4
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
cmp dword [ebp - 0x18], 0x1400
jbe 0x42ba55
mov esi, esp
push 0x1400
movsx ecx, word [0x452920]
add ecx, 0x32
push ecx
push str.error__d:attr_size___d_memery_error_
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x141c]
cmp eax, dword [edx + 0x204]
jb 0x42ba75
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x204], 0x1400
jbe 0x42bab2
mov esi, esp
mov edx, dword [ebp - 0x141c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x204]
push ecx
movsx edx, word [0x452920]
add edx, 0x37
push edx
push str.error__d:attr_size__d_total_d__err:attr_size_total__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
mov eax, dword [ebp - 0x141c]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1424], 0
mov esi, esp
push str.create_files_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042bea0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x42bb04
mov eax, dword [ebp - 8]
jmp 0x42be84
mov esi, esp
push str.open_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
push 0x30
push 0
mov ecx, dword [ebp - 0x145c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x145c]
push edx
call fcn.0042c120
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x42bb5c
mov eax, dword [ebp - 8]
jmp 0x42be84
mov esi, esp
push str.write_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
push 0x44ca14
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x1428], eax
cmp dword [ebp - 0x1428], 0
jne 0x42bbc9
movsx ecx, word [0x452920]
add ecx, 0x51
mov esi, esp
push ecx
push str.error__d..
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, 0xfffffc13
jmp 0x42be84
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x1428]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x1424], 0
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
push str.open_add_file_:_s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1420], ecx
cmp dword [ebp - 0x1420], 0
jbe 0x42bcf2
push 0x1400
push 0
lea edx, [ebp - 0x1418]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x1428]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, esp
mov ecx, dword [ebp - 0x1428]
push ecx
mov edx, dword [ebp - 0x1420]
push edx
push 1
lea eax, [ebp - 0x1418]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x42bc8b
jmp 0x42be6d
mov ecx, dword [ebp - 0x1420]
push ecx
lea edx, [ebp - 0x1418]
push edx
mov eax, dword [ebp - 0x145c]
push eax
call fcn.0042c510
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x42bcdf
mov esi, esp
mov ecx, dword [ebp - 0x1420]
push ecx
movsx edx, word [0x452920]
add edx, 0x66
push edx
push str.write_attr_error__d:this_xfer_d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x42be6d
mov eax, dword [ebp - 0x1420]
mov dword [ebp - 0x1424], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x1424]
cmp ecx, dword [ebp - 0x141c]
jae 0x42bdfd
mov edx, dword [ebp - 0x141c]
sub edx, dword [ebp - 0x1424]
cmp edx, 0x1400
jbe 0x42bd24
mov dword [ebp - 0x1420], 0x1400
jmp 0x42bd36
mov eax, dword [ebp - 0x141c]
sub eax, dword [ebp - 0x1424]
mov dword [ebp - 0x1420], eax
mov esi, esp
mov ecx, dword [ebp - 0x1428]
push ecx
mov edx, dword [ebp - 0x1420]
push edx
push 1
lea eax, [ebp - 0x1418]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x42bd8f
movsx ecx, word [0x452920]
add ecx, 0x77
mov esi, esp
push ecx
push str.error__d..
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x42be6d
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x1420]
je 0x42bdb6
mov esi, esp
push str.error_data_write_fail__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x42be6d
mov eax, dword [ebp - 0x1420]
push eax
lea ecx, [ebp - 0x1418]
push ecx
mov edx, dword [ebp - 0x145c]
push edx
call fcn.0042c3a0
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1420]
je 0x42bde6
jmp 0x42be6d
mov ecx, dword [ebp - 0x1424]
add ecx, dword [ebp - 0x1420]
mov dword [ebp - 0x1424], ecx
jmp 0x42bcf2
mov esi, esp
push str.close_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov esi, dword [ebp - 0x1424]
sub esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x145c]
push edx
call fcn.0042c270
add esp, 4
cmp esi, eax
je 0x42be56
movsx eax, word [0x452920]
add eax, 0x89
mov esi, esp
push eax
push str.error_line__d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x42be6d
mov ecx, dword [ebp - 0x145c]
push ecx
call fcn.0042c220
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x42be84
mov edx, dword [ebp - 0x145c]
push edx
call fcn.0042c220
add esp, 4
mov dword [ebp - 8], eax
mov eax, 0xfffffc13
pop edi
pop esi
pop ebx
add esp, 0x149c
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret