Function at 0x10157120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101987f8
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 0x10157160
mov eax, dword [edi]
push 0x101d9650
lea esi, [ebx + 0x30]
push eax
push esi
mov dword [ebp - 0x38], esi
call fcn.1016dae0
add esp, 0xc
cmp dword [esi], 0
jne 0x10157238
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x101571b9
cmp dword [edi + 0x14], 8
jb 0x1015718d
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 0x10157352
mov esi, dword [0x101fc274]
test esi, esi
je 0x101571fb
cmp dword [edi + 0x14], 8
jb 0x101571cb
mov edi, dword [edi]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.createSignatureFile
push 0x101ace0c
push str.Validator
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
xor al, al
jmp 0x10157352
mov eax, dword [0x101fc278]
test eax, eax
je 0x1015723f
cmp dword [edi + 0x14], 8
jb 0x1015720c
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 0x10157352
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10157246
xor al, al
jmp 0x10157352
push eax
mov byte [ebp - 0x2d], 1
mov dword [ebx + 4], eax
call fcn.1015cbe3
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 0x101572e0
push eax
push dword [ebx + 4]
push 1
push edi
call fcn.1016e46c
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x101572e0
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.10158430
mov ecx, eax
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x101572d8
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10001d60
inc dword [ebp - 0x14]
lea esi, [ebx + 0x30]
jmp 0x10157276
cmp byte [ebp - 0x2d], 0
je 0x10157301
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 0x10157304
mov bl, byte [ebp - 0x2d]
push edi
call fcn.1015c886
push dword [esi]
call fcn.1016d8ef
add esp, 8
test eax, eax
jne 0x1015731a
mov dword [esi], eax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10157350
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10157346
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10157370
push edx
push ecx
call fcn.1015cbd5
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.1015c875
mov esp, ebp
pop ebp
ret 0xc
call fcn.101686f5
int3