Function at 0x5138e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x20], eax
push dword [ebx]
call fcn.00595cb4
push dword [ebx]
lea eax, [ebp - 0x14]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x1c
test eax, eax
jne 0x51392f
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x14], 0x89
jne 0x513ba6
cmp byte [ebp - 0x13], 0x50
jne 0x513ba6
cmp byte [ebp - 0x12], 0x4e
jne 0x513ba6
cmp byte [ebp - 0x11], 0x47
jne 0x513ba6
cmp byte [ebp - 0x10], 0xd
jne 0x513ba6
cmp byte [ebp - 0xf], 0xa
jne 0x513ba6
cmp byte [ebp - 0xe], 0x1a
jne 0x513ba6
cmp byte [ebp - 0xd], 0xa
jne 0x513ba6
push edi
push dword [ebx]
xor edi, edi
mov dword [ebp - 0x24], edi
call fcn.00595867
add esp, 4
test eax, eax
jne 0x513b94
push esi
push ebx
call fcn.0045d070
push dword [ebx]
mov esi, eax
lea eax, [ebp - 0x18]
push 1
push 4
push eax
call fcn.00595b79
lea eax, [ebp - 0x18]
add esp, 0x14
cmp dword [eax], 0x444e4549
je 0x513b93
movzx eax, byte [ebp - 0x15]
push esi
push eax
movzx eax, byte [ebp - 0x16]
push eax
mov eax, dword [ebp - 0x18]
movzx ecx, ah
push ecx
movzx eax, al
push eax
push dword [ebx]
call fcn.005960c7
add esp, 4
push eax
push str._x___c_c_c_c__d__n
call fcn.005927a9
lea eax, [ebp - 0x18]
add esp, 0x1c
cmp dword [eax], 0x54414449
jne 0x513a13
mov edi, 1
push edi
push esi
push dword [ebx]
mov dword [ebp - 0x24], edi
call fcn.00595cb4
add esp, 0xc
jmp 0x513b7b
test edi, edi
jne 0x513a29
push 1
push esi
push dword [ebx]
call fcn.00595cb4
add esp, 0xc
jmp 0x513b7b
test esi, esi
jle 0x513b7b
lea eax, [esi + 1]
push eax
call fcn.00593e38
push dword [ebx]
mov edi, eax
push 1
push esi
push edi
call fcn.00595b79
lea eax, [ebp - 0x18]
mov byte [edi + esi], 0
add esp, 0x14
cmp dword [eax], 0x74584574
jne 0x513a84
mov ecx, edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513a60
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
mov ecx, edi
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513a76
sub ecx, edx
sub esi, ecx
dec esi
jmp 0x513abe
lea eax, [ebp - 0x18]
cmp dword [eax], 0x74585469
jne 0x513b6f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513a98
sub ecx, edx
lea eax, [edi + 5]
add eax, ecx
mov ecx, edi
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513ab0
sub ecx, edx
sub esi, ecx
sub esi, 5
test esi, esi
je 0x513b6f
mov ecx, str.Comment
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x513af0
test dl, dl
je 0x513aec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x513af0
add eax, 2
add ecx, 2
test dl, dl
jne 0x513ad0
xor eax, eax
jmp 0x513af5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x513b1c
mov esi, dword [ebp - 0x1c]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513b01
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push dword [ebp - 0x20]
call fcn.004522a0
add esp, 0xc
jmp 0x513b6f
mov ecx, str.XML:com.adobe.xmp
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x513b43
test dl, dl
je 0x513b3f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x513b43
add eax, 2
add ecx, 2
test dl, dl
jne 0x513b23
xor eax, eax
jmp 0x513b48
sbb eax, eax
or eax, 1
test eax, eax
jne 0x513b6f
mov esi, dword [ebp - 0x1c]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513b54
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 3
push dword [ebp - 0x20]
call fcn.00452460
add esp, 0x10
push edi
call fcn.00592c4b
mov edi, dword [ebp - 0x24]
add esp, 4
push ebx
call fcn.0045d070
push dword [ebx]
call fcn.00595867
add esp, 8
test eax, eax
je 0x513998
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret