Function at 0x10157030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10198638
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10157070
mov eax, dword [edi]
push 0x101d98b8
lea esi, [ebx + 0x30]
push eax
push esi
mov dword [ebp - 0x38], esi
call fcn.1016da20
add esp, 0xc
cmp dword [esi], 0
jne 0x10157148
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x101570c9
cmp dword [edi + 0x14], 8
jb 0x1015709d
mov edi, dword [edi]
mov esi, dword [eax]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.createSignatureFile
push 0x32
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x18
xor al, al
jmp 0x10157262
mov esi, dword [0x101fc354]
test esi, esi
je 0x1015710b
cmp dword [edi + 0x14], 8
jb 0x101570db
mov edi, dword [edi]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.createSignatureFile
push 0x101ace8c
push str.Validator
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
xor al, al
jmp 0x10157262
mov eax, dword [0x101fc358]
test eax, eax
je 0x1015714f
cmp dword [edi + 0x14], 8
jb 0x1015711c
mov edi, dword [edi]
mov esi, dword [eax]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.createSignatureFile
push 0x32
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x18
xor al, al
jmp 0x10157262
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10157156
xor al, al
jmp 0x10157262
push eax
mov byte [ebp - 0x2d], 1
mov dword [ebx + 4], eax
call fcn.1015cb13
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
je 0x101571f0
push eax
push dword [ebx + 4]
push 1
push edi
call fcn.1016e3ac
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x101571f0
mov eax, dword [ebx]
lea edx, [ebp - 0x2c]
push edx
push ecx
mov dword [ebx + 8], ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
push edi
call dword [0x1019a4f8]
mov ecx, ebx
call esi
neg al
lea ecx, [ebx + 0x10]
sbb al, al
and byte [ebp - 0x2d], al
lea eax, [ebp - 0x14]
push eax
call fcn.10158360
mov ecx, eax
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x101571e8
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10001e80
inc dword [ebp - 0x14]
lea esi, [ebx + 0x30]
jmp 0x10157186
cmp byte [ebp - 0x2d], 0
je 0x10157211
mov eax, dword [ebx]
push dword [ebp - 0x34]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, ebx
call esi
mov esi, dword [ebp - 0x38]
mov bl, al
jmp 0x10157214
mov bl, byte [ebp - 0x2d]
push edi
call fcn.1015c7b6
push dword [esi]
call fcn.1016d82f
add esp, 8
test eax, eax
jne 0x1015722a
mov dword [esi], eax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10157260
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10157256
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10157280
push edx
push ecx
call fcn.1015cb05
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 0xc
call fcn.10168635
int3