Function at 0x1007e390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x101e6b6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x102b7ffd
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], eax
call fcn.10124b2c
lea eax, [ebp - 0x404]
xor edi, edi
push eax
push dword [ebp - 0x410]
mov esi, str._RADIANCE
call fcn.1007e250
add esp, 8
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1007e420
test cl, cl
je 0x1007e41c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1007e420
add eax, 2
add esi, 2
test cl, cl
jne 0x1007e400
xor eax, eax
jmp 0x1007e425
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007e446
pop edi
pop esi
mov dword [0x101e8bb0], 0x1018bd88
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x410]
lea eax, [ebp - 0x404]
push eax
push esi
call fcn.1007e250
add esp, 8
mov dword [ebp - 0x40c], eax
cmp byte [eax], 0
je 0x1007ea82
mov ebx, 1
mov ecx, str.FORMAT32_bit_rle_rgbe
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1007e495
test dl, dl
je 0x1007e491
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1007e495
add eax, 2
add ecx, 2
test dl, dl
jne 0x1007e475
xor eax, eax
jmp 0x1007e49a
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x404]
push eax
push esi
cmove edi, ebx
call fcn.1007e250
add esp, 8
mov dword [ebp - 0x40c], eax
cmp byte [eax], 0
jne 0x1007e470
mov ebx, dword [ebp - 0x41c]
test edi, edi
je 0x1007ea82
lea eax, [ebp - 0x404]
mov edi, esi
push eax
push edi
call fcn.1007e250
push 3
push 0x1018bdcc
push eax
mov dword [ebp - 0x40c], eax
call fcn.10136ad0
add esp, 0x14
test eax, eax
jne 0x1007ea82
mov eax, dword [ebp - 0x40c]
lea ecx, [ebp - 0x40c]
push 0xa
add eax, 3
push ecx
push eax
mov dword [ebp - 0x40c], eax
call fcn.1013fbb0
mov ecx, dword [ebp - 0x40c]
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x42c], esi
cmp byte [ecx], 0x20
jne 0x1007e53c
nop dword [eax]
inc ecx
mov dword [ebp - 0x40c], ecx
cmp byte [ecx], 0x20
je 0x1007e530
push 3
push 0x1018bdd0
push ecx
call fcn.10136ad0
add esp, 0xc
test eax, eax
jne 0x1007ea82
mov eax, dword [ebp - 0x40c]
push 0xa
add eax, 3
push 0
push eax
mov dword [ebp - 0x40c], eax
call fcn.1013fbb0
mov ecx, dword [ebp - 0x438]
test ebx, ebx
mov dword [ebp - 0x434], eax
mov dword [ecx], eax
mov eax, 3
mov ecx, dword [ebp - 0x428]
cmovne eax, ebx
mov ebx, dword [ebp - 0x434]
mov dword [ebp - 0x430], eax
mov dword [ecx], esi
mov esi, eax
mov ecx, dword [ebp - 0x424]
imul esi, ebx
mov dword [ecx], 3
mov eax, esi
imul eax, dword [ebp - 0x42c]
shl eax, 2
push eax
call fcn.101365ad
lea ecx, [ebx - 8]
add esp, 0x10
mov edx, eax
mov dword [ebp - 0x424], edx
cmp ecx, 0x7ff7
ja 0x1007ea03
xor eax, eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x42c], eax
jle 0x1007e933
lea eax, [esi*4]
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x43c], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1007e626
push eax
call fcn.101393c8
xor ecx, ecx
lea ebx, [edi + 0x14]
add esp, 4
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x414], eax
jmp 0x1007e64f
mov eax, dword [edi + 0x14]
lea ebx, [edi + 0x14]
mov dword [ebp - 0x420], ebx
cmp eax, dword [edi + 0x18]
jae 0x1007e645
movzx ecx, byte [eax]
inc eax
mov dword [ebp - 0x414], ecx
mov dword [ebx], eax
jmp 0x1007e655
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x420], ebx
mov eax, dword [edi + 0x10]
mov ecx, edi
mov edx, 0x18
lea esi, [edx + ecx]
mov dword [ebp - 0x438], esi
test eax, eax
je 0x1007e687
push eax
call fcn.101393c8
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
mov dword [ebp - 0x408], ecx
jmp 0x1007e6a5
mov eax, dword [ebx]
cmp eax, dword [esi]
jae 0x1007e69b
movzx ecx, byte [eax]
inc eax
mov dword [ebp - 0x408], ecx
mov dword [ebx], eax
jmp 0x1007e6a5
mov dword [ebp - 0x408], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1007e6c1
push eax
call fcn.101393c8
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
jmp 0x1007e6d1
mov eax, dword [ebx]
cmp eax, dword [esi]
jae 0x1007e6cf
movzx ecx, byte [eax]
inc eax
mov dword [ebx], eax
jmp 0x1007e6d1
xor ecx, ecx
mov eax, dword [ebp - 0x414]
mov edx, dword [ebp - 0x408]
cmp eax, 2
jne 0x1007e989
cmp edx, eax
jne 0x1007e989
test cl, cl
js 0x1007e989
mov eax, dword [edi + 0x10]
shl ecx, 8
mov dword [ebp - 0x408], ecx
test eax, eax
je 0x1007e71b
push eax
call fcn.101393c8
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
jmp 0x1007e72b
mov eax, dword [ebx]
cmp eax, dword [esi]
jae 0x1007e729
movzx ecx, byte [eax]
inc eax
mov dword [ebx], eax
jmp 0x1007e72b
xor ecx, ecx
or ecx, dword [ebp - 0x408]
mov ebx, dword [ebp - 0x434]
cmp ecx, ebx
jne 0x1007e953
cmp dword [ebp - 0x418], 0
jne 0x1007e75e
lea eax, [ebx*4]
push eax
call fcn.101365ad
add esp, 4
mov dword [ebp - 0x418], eax
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov dword [ebp - 0x414], edi
test ebx, ebx
jle 0x1007e8b6
nop word [eax + eax]
mov ecx, dword [ebp - 0x410]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1007e7ae
push eax
call fcn.101393c8
mov edx, dword [ebp - 0x420]
mov ebx, eax
mov ecx, dword [ebp - 0x410]
xor eax, eax
add esp, 4
cmp ebx, 0xffffffff
cmove ebx, eax
jmp 0x1007e7c4
mov edx, dword [ebp - 0x420]
mov eax, dword [edx]
cmp eax, dword [esi]
jae 0x1007e7c2
movzx ebx, byte [eax]
inc eax
mov dword [edx], eax
jmp 0x1007e7c4
xor ebx, ebx
cmp bl, 0x80
jbe 0x1007e82c
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1007e7e5
push eax
call fcn.101393c8
mov edx, eax
add esp, 4
xor eax, eax
cmp edx, 0xffffffff
cmove edx, eax
jmp 0x1007e7fb
mov eax, dword [edx]
cmp eax, dword [esi]
jae 0x1007e7f9
mov ecx, dword [ebp - 0x420]
movzx edx, byte [eax]
inc eax
mov dword [ecx], eax
jmp 0x1007e7fb
xor edx, edx
add bl, 0x80
movzx ecx, bl
je 0x1007e8a2
mov eax, dword [ebp - 0x408]
lea eax, [eax + edi*4]
add eax, dword [ebp - 0x418]
add edi, ecx
mov dword [ebp - 0x414], edi
nop
mov byte [eax], dl
lea eax, [eax + 4]
sub ecx, 1
jne 0x1007e820
jmp 0x1007e8a2
movzx edi, bl
test bl, bl
je 0x1007e89c
mov eax, dword [ebp - 0x414]
mov ebx, dword [ebp - 0x408]
lea esi, [ebx + eax*4]
mov ebx, dword [ebp - 0x438]
add esi, dword [ebp - 0x418]
add eax, edi
mov dword [ebp - 0x414], eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1007e876
push eax
call fcn.101393c8
mov edx, dword [ebp - 0x420]
xor ecx, ecx
add esp, 4
cmp eax, 0xffffffff
cmove eax, ecx
jmp 0x1007e886
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jae 0x1007e884
movzx eax, byte [ecx]
inc ecx
mov dword [edx], ecx
jmp 0x1007e886
xor eax, eax
mov ecx, dword [ebp - 0x410]
mov byte [esi], al
add esi, 4
sub edi, 1
jne 0x1007e856
mov esi, dword [ebp - 0x438]
mov edi, dword [ebp - 0x414]
mov ebx, dword [ebp - 0x434]
cmp edi, ebx
jl 0x1007e780
mov eax, dword [ebp - 0x408]
inc eax
mov dword [ebp - 0x408], eax
cmp eax, 4
jl 0x1007e766
test ebx, ebx
jle 0x1007e902
mov esi, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x430]
mov edi, dword [ebp - 0x428]
nop dword [eax]
push ecx
push esi
push edi
call fcn.1007e120
mov ecx, dword [ebp - 0x430]
add esp, 0xc
add esi, 4
lea eax, [ecx*4]
add edi, eax
sub ebx, 1
jne 0x1007e8e0
mov ecx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x43c]
inc ecx
add dword [ebp - 0x428], eax
mov edi, dword [ebp - 0x410]
mov dword [ebp - 0x41c], ecx
cmp ecx, dword [ebp - 0x42c]
jl 0x1007e603
mov eax, dword [ebp - 0x418]
push eax
call fcn.10136592
add esp, 4
mov eax, dword [ebp - 0x424]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x424]
call fcn.10136592
push dword [ebp - 0x418]
call fcn.10136592
add esp, 8
mov dword [0x101e8bb0], 0x1018bdd4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x408], al
mov eax, dword [edi + 0x10]
mov byte [ebp - 0x407], dl
mov byte [ebp - 0x406], cl
test eax, eax
je 0x1007e9b7
push eax
call fcn.101393c8
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
jmp 0x1007e9c7
mov eax, dword [ebx]
cmp eax, dword [esi]
jae 0x1007e9c5
movzx ecx, byte [eax]
inc eax
mov dword [ebx], eax
jmp 0x1007e9c7
xor ecx, ecx
mov eax, dword [ebp - 0x430]
push eax
lea eax, [ebp - 0x408]
mov byte [ebp - 0x405], cl
push eax
push dword [ebp - 0x424]
call fcn.1007e120
push dword [ebp - 0x418]
mov esi, 1
xor edi, edi
call fcn.10136592
mov eax, dword [ebp - 0x410]
add esp, 0x10
jmp 0x1007ea20
xor edi, edi
cmp edi, dword [ebp - 0x42c]
jge 0x1007e93c
xor esi, esi
cmp esi, ebx
jge 0x1007ea7f
mov eax, dword [ebp - 0x410]
lea ebx, [eax + 0x14]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1007ea3d
push eax
push 4
lea eax, [ebp - 0x41c]
push 1
push eax
call fcn.10135779
add esp, 0x10
jmp 0x1007ea4c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x41c], eax
lea eax, [ecx + 4]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x41c]
mov ebx, dword [ebp - 0x434]
push ecx
push eax
mov eax, edi
imul eax, ebx
add eax, esi
imul eax, ecx
mov ecx, dword [ebp - 0x424]
lea eax, [ecx + eax*4]
push eax
call fcn.1007e120
add esp, 0xc
inc esi
jmp 0x1007ea13
inc edi
jmp 0x1007ea05
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
mov dword [0x101e8bb0], 0x1018bdb4
pop ebx
call fcn.10124b5e
mov esp, ebp
pop ebp
ret