Function at 0x10015ce0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a1a78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x30], 0
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
test ecx, ecx
je 0x10015dcf
mov edx, dword [esi + 0x358]
mov eax, dword [esi + 0x35c]
sub edx, 0xc
sbb eax, 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov ebx, dword [ecx + 0x10c]
mov edi, dword [ecx + 0x108]
mov dword [esp + 0x18], 0xc
cmp eax, ebx
ja 0x10015e1b
jb 0x10015d77
cmp edx, edi
jae 0x10015e1b
mov ebp, edx
add ebp, 0xc
mov edi, eax
adc edi, 0
cmp edi, ebx
jb 0x10015d99
ja 0x10015d8f
cmp ebp, dword [ecx + 0x108]
jbe 0x10015d99
mov ebx, dword [ecx + 0x108]
sub ebx, edx
jmp 0x10015d9d
mov ebx, dword [esp + 0x18]
mov ebp, dword [ecx + 0xa8]
push ecx
push 0x1000fb00
lea edi, [ecx + 0xa8]
push ebx
lea ecx, [esp + 0x3c]
push ecx
push eax
push edx
mov edx, dword [ebp + 4]
push edi
call edx
test eax, eax
jl 0x10015fc9
cmp eax, 1
jne 0x10015e1b
jmp 0x10015fc9
push 2
lea edx, [esp + 0x28]
push edx
or ecx, 0xffffffff
push ecx
mov eax, 0xfffffff4
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10015df8
call fcn.10002c20
jmp 0x10015fc9
mov eax, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015e1b
cmp dword [esp + 0x18], 0xc
je 0x10015dee
cmp dword [esp + 0x30], 0x3552454e
jne 0x10015e34
lea eax, [esp + 0x34]
call fcn.1000fc30
mov dword [esp + 0x20], edx
jmp 0x10015e57
cmp dword [esp + 0x34], 0x4f52454e
jne 0x10015fc4
lea eax, [esp + 0x38]
call fcn.10013280
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebp, eax
cmp ecx, edx
ja 0x10015e75
jb 0x10015e6b
cmp edi, ebp
jae 0x10015e75
mov eax, 0x80004005
jmp 0x10015fc9
sub edi, ebp
push 0x100d61b4
push edi
mov dword [esi + 0x358], ebp
mov dword [esi + 0x35c], edx
call fcn.10057582
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], 0
test ebx, ebx
jne 0x10015ead
mov eax, 0x8007000e
jmp 0x10015fc9
push edi
push 0
push ebx
call fcn.10059a00
mov ecx, dword [esi + 0x10]
add esp, 0xc
push 0
test ecx, ecx
je 0x10015eeb
mov edx, dword [esp + 0x24]
push ebx
push edx
push ebp
mov edx, edi
call fcn.1000fa70
mov ebp, eax
test ebp, ebp
jl 0x10015edb
cmp ebp, 1
jne 0x10015f3d
lea esi, [esp + 0x18]
call fcn.1004b720
mov eax, ebp
jmp 0x10015fc9
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10015f18
call fcn.10002c20
lea esi, [esp + 0x18]
mov edi, eax
call fcn.1004b720
mov eax, edi
jmp 0x10015fc9
mov eax, dword [esi + 0xc]
push 0
lea edx, [esp + 0x20]
push edx
push edi
push ebx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10015f3d
cmp dword [esp + 0x1c], edi
je 0x10015f01
xor ecx, ecx
test edi, edi
jbe 0x10015f94
mov edx, dword [ecx + ebx]
lea eax, [ecx + ebx]
cmp edx, 0x21444e45
je 0x10015f94
cmp edx, 0x494f4144
je 0x10015fae
cmp edx, 0x584f4144
je 0x10015fae
movzx edx, byte [eax + 7]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1c], dl
movzx edx, byte [eax + 6]
mov byte [esp + 0x1d], dl
movzx edx, byte [eax + 5]
mov al, byte [eax + 4]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + edx + 8]
cmp ecx, edi
jb 0x10015f43
mov eax, dword [esi + 0xc]
push eax
mov ecx, esi
call fcn.10016f50
lea esi, [esp + 0x18]
mov edi, eax
call fcn.1004b720
mov eax, edi
jmp 0x10015fc9
mov ecx, esi
call fcn.10015ff0
lea esi, [esp + 0x18]
mov edi, eax
call fcn.1004b720
mov eax, edi
jmp 0x10015fc9
mov eax, 0xe003200b
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1005710f
add esp, 0x38
ret