Function at 0x40729e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x54], eax
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x58], edx
lea edi, [ebp - 0x44]
xor esi, esi
mov dword [ebp - 0x50], esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
push 8
pop ecx
rep stosd dword es:[edi], eax
test ebx, ebx
jne 0x4072f4
push str.ERROR:_Invalid_file_pointer_passed._n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40755c
push 2
pop edi
push edi
push esi
push esi
push ebx
call fcn.00414a5d
add esp, 0x10
test eax, eax
je 0x40730f
push str.ERROR:_Could_not_seek_to_the_end_of_the_MAR_file._n
push edi
jmp 0x4072de
push ebx
call fcn.004158a0
pop ecx
cmp edx, esi
jl 0x40732a
jg 0x407323
cmp eax, 0x1f400000
jbe 0x40732a
push str.ERROR:_MAR_file_is_too_large_to_be_verified._n
jmp 0x40730c
push esi
push esi
push 0x10
push ebx
call fcn.00414a5d
add esp, 0x10
test eax, eax
je 0x407342
push str.ERROR:_Could_not_seek_to_the_signature_block._n
jmp 0x40730c
push ebx
push 1
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
je 0x40735f
push str.ERROR:_Could_not_read_number_of_signatures._n
jmp 0x40730c
push dword [ebp - 0x48]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [ebp - 0x48], eax
cmp eax, 8
jbe 0x40738c
push 8
push str.ERROR:_At_most__d_signatures_can_be_specified._n
push edi
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
add esp, 0xc
jmp 0x4072ec
mov edi, esi
test eax, eax
je 0x40742e
push ebx
push 1
lea eax, [ebp - 0x44]
lea eax, [eax + edi*4]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x40751d
push dword [ebp + edi*4 - 0x44]
call dword [sym.imp.WSOCK32.dll_ntohl]
push ebx
push 1
mov dword [ebp + edi*4 - 0x44], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407513
push dword [ebp - 0x4c]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [ebp - 0x4c], eax
cmp eax, 0x800
ja 0x407509
push eax
call fcn.0040fb11
mov dword [ebp + edi*4 - 0x24], eax
pop ecx
test eax, eax
je 0x4074ff
push ebx
push 1
push dword [ebp - 0x4c]
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x4074cc
cmp dword [ebp + edi*4 - 0x44], 2
jne 0x407499
inc edi
cmp edi, dword [ebp - 0x48]
jb 0x407396
push ebx
call fcn.004158a0
and eax, edx
or edi, 0xffffffff
pop ecx
cmp eax, edi
je 0x40755a
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
push dword [ebp - 0x54]
call fcn.0040756d
add esp, 0x10
cmp eax, edi
je 0x40755a
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40747e
push dword [ebp + esi*4 - 0x24]
call fcn.0040faba
mov eax, dword [ebp - 0x48]
inc esi
pop ecx
cmp esi, eax
jb 0x40746c
mov ecx, dword [ebp - 0x50]
cmp ecx, eax
jne 0x407527
cmp ecx, 1
jne 0x407527
xor eax, eax
jmp 0x40755c
push str.ERROR:_Unknown_signature_algorithm_ID._n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
pop ecx
pop ecx
cmp dword [ebp - 0x48], esi
jbe 0x4072ec
push dword [ebp + esi*4 - 0x24]
call fcn.0040faba
inc esi
pop ecx
cmp esi, dword [ebp - 0x48]
jb 0x4074b7
jmp 0x4072ec
push str.ERROR:_Could_not_read_extracted_signature._n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
pop ecx
pop ecx
cmp dword [ebp - 0x48], esi
jbe 0x4072ec
push dword [ebp + esi*4 - 0x24]
call fcn.0040faba
inc esi
pop ecx
cmp esi, dword [ebp - 0x48]
jb 0x4074ea
jmp 0x4072ec
push str.ERROR:_Could_allocate_buffer_for_signature._n
jmp 0x4072dc
push str.ERROR:_Signature_length_is_too_large_to_verify._n
jmp 0x4072dc
push str.ERROR:_Could_not_read_signatures_length._n
jmp 0x4072dc
push str.ERROR:_Could_not_read_signatures_algorithm_ID._n
jmp 0x4072dc
test ecx, ecx
jne 0x407542
push str.ERROR:_Not_all_signatures_were_verified._n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
pop ecx
pop ecx
jmp 0x40755a
push eax
push ecx
push str.ERROR:_Only__d_of__d_signatures_were_verified._n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret