Function at 0x5dd6b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
push edi
push 0xc90
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
call fcn.005e7e75
push 0xc90
mov ebp, eax
call fcn.005e7e75
mov ebx, eax
push 0xc800
mov dword [esp + 0x58], ebx
call fcn.005e7e75
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x64]
push 0x8000
push eax
call fcn.005ec51f
mov ecx, dword [esp + 0x70]
push 0x180
mov edi, eax
push 0x8302
push ecx
mov dword [esp + 0x5c], edi
call fcn.005ec51f
push 0x20
push ebp
push edi
mov dword [esp + 0x48], eax
call fcn.005e84c5
xor eax, eax
xor edx, edx
mov al, byte [ebp + 0x13]
mov dl, byte [ebp + 0x12]
shl eax, 8
add eax, edx
xor ecx, ecx
mov cl, byte [ebp + 0x16]
mov dword [esp + 0x54], eax
xor eax, eax
add esp, 0x2c
mov al, byte [ebp + 0x17]
shl eax, 8
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 4
je 0x5dd8cf
cmp eax, 8
je 0x5dd77f
push 0x416730
mov byte [esp + 0x5c], 0
call fcn.005e8417
mov edi, dword [esp + 0x20]
add esp, 4
jmp 0x5de017
mov edx, dword [esp + 0x28]
mov byte [esp + 0x58], 0x10
lea eax, [edx + 7]
and eax, 0xfff8
push esi
mov esi, dword [esp + 0x5c]
and esi, 0xff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], esi
shl esi, 6
push esi
call fcn.005e7e75
push esi
mov dword [esp + 0x2c], eax
call fcn.005e7e75
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x38], eax
cmp eax, 0x1e0
mov eax, dword [esp + 0x64]
jae 0x5dd7ed
cmp byte [esp + 0x5c], 0x10
jne 0x5dd7ed
test eax, eax
je 0x5dd7ed
mov cl, byte [0x418be5]
test cl, cl
jne 0x5dd7ed
mov dword [esp + 0x28], 0x1e0
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x280
mov dword [esp + 0x30], ecx
jae 0x5dd826
cmp byte [esp + 0x5c], 0x10
jne 0x5dd826
test eax, eax
je 0x5dd826
mov al, byte [0x418be5]
test al, al
jne 0x5dd81a
mov ecx, 0x280
mov dword [esp + 0x2c], ecx
lea eax, [ecx + 7]
and eax, 0xfff8
mov dword [esp + 0x1c], eax
test ecx, ecx
jbe 0x5dd842
mov edi, dword [esp + 0x3c]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
imul ecx, eax
mov byte [ebp + 6], al
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x2c]
push 8
shr eax, 8
mov byte [ebp + 7], al
mov eax, dword [esp + 0x24]
mov byte [ebp + 4], cl
push ebp
shr ecx, 8
push eax
mov byte [ebp], 0x41
mov byte [ebp + 1], 0x57
mov byte [ebp + 2], 0x42
mov byte [ebp + 3], 0x4d
mov byte [ebp + 5], cl
call fcn.005e86bb
push 0
push 0x36
push edi
call fcn.005ea1ab
push esi
push ebx
push edi
call fcn.005e84c5
add esp, 0x24
test esi, esi
jbe 0x5dd8f2
mov eax, dword [esp + 0x24]
mov ecx, ebx
sub ecx, eax
mov edi, esi
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec edi
jne 0x5dd8a7
test esi, esi
jbe 0x5dd8f2
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, edi
sub ecx, edi
mov dl, byte [0x418be4]
test dl, dl
jne 0x5dd8e7
mov byte [eax], 0xff
jmp 0x5dd8ec
mov eax, dword [esp + 0x28]
mov byte [esp + 0x58], 1
add eax, 7
shr eax, 1
and eax, 0x7ffc
jmp 0x5dd790
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x5dd8c0
jmp 0x5dd8f6
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x5dd9d2
mov al, byte [0x418be4]
test al, al
jne 0x5ddab8
test byte [esp + 0x68], 0x10
jne 0x5dd963
mov edi, dword [esp + 0x44]
xor esi, esi
shl edi, 4
je 0x5dd94a
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 1]
mov dl, byte [eax - 1]
cmp dl, 0x64
jb 0x5dd942
mov cl, byte [eax]
cmp dl, cl
jne 0x5dd942
mov dl, byte [eax + 1]
cmp cl, dl
jne 0x5dd942
cmp dl, byte [eax + 2]
je 0x5dd9a9
inc esi
add eax, 4
cmp esi, edi
jb 0x5dd928
mov cl, 0x80
mov eax, dword [esp + 0x18]
mov ch, cl
mov byte [esp + 0x60], cl
mov edi, eax
mov word [eax + 0x1c], cx
mov byte [eax + 0x1e], cl
mov byte [eax + 0x1f], 0
test byte [esp + 0x68], 0x80
jne 0x5dd9d2
mov edx, dword [esp + 0x44]
xor eax, eax
shl edx, 4
mov byte [esp + 0x60], 0
je 0x5dd99a
mov ecx, dword [esp + 0x24]
mov bl, 0x32
add ecx, 2
cmp byte [ecx - 2], 0xc8
jb 0x5dd992
cmp byte [ecx - 1], bl
ja 0x5dd992
cmp byte [ecx], bl
jbe 0x5dd9ae
inc eax
add ecx, 4
cmp eax, edx
jb 0x5dd983
xor edx, edx
mov byte [edi + 0x24], 0xff
mov word [edi + 0x25], dx
mov byte [edi + 0x27], dl
jmp 0x5dd9d2
mov cl, byte [ebx + esi*4]
jmp 0x5dd94c
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x60], 1
mov dl, byte [ecx + eax*4]
mov byte [edi + 0x24], dl
mov dl, byte [ecx + eax*4 + 1]
mov byte [edi + 0x25], dl
mov dl, byte [ecx + eax*4 + 2]
mov byte [edi + 0x26], dl
mov al, byte [ecx + eax*4 + 3]
mov byte [edi + 0x27], al
mov al, byte [0x418be4]
test al, al
jne 0x5ddab8
test byte [esp + 0x68], 0x40
jne 0x5dda4a
mov edx, dword [esp + 0x44]
xor eax, eax
shl edx, 4
mov byte [esp + 0x60], 0
je 0x5dda19
mov ecx, dword [esp + 0x24]
mov bl, 0x28
add ecx, 2
cmp byte [ecx - 2], bl
ja 0x5dda0d
cmp byte [ecx - 1], bl
ja 0x5dda0d
cmp byte [ecx], bl
jbe 0x5dda21
inc eax
add ecx, 4
cmp eax, edx
jb 0x5dd9ff
mov edi, dword [esp + 0x18]
mov dword [edi], 0
jmp 0x5dda4a
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x60], 1
mov edi, esi
mov dl, byte [ecx + eax*4]
mov byte [esi], dl
mov dl, byte [ecx + eax*4 + 1]
mov byte [esi + 1], dl
mov dl, byte [ecx + eax*4 + 2]
mov byte [esi + 2], dl
mov al, byte [ecx + eax*4 + 3]
mov byte [esi + 3], al
mov al, byte [esp + 0x68]
test al, 1
jne 0x5ddab8
cmp byte [esp + 0x5c], 1
jne 0x5ddab8
test al, 0x10
jne 0x5ddaa3
mov ebx, dword [esp + 0x24]
xor esi, esi
lea eax, [ebx + 1]
mov dl, byte [eax - 1]
cmp dl, 0x64
jb 0x5dda80
mov cl, byte [eax]
cmp dl, cl
jne 0x5dda80
mov dl, byte [eax + 1]
cmp cl, dl
jne 0x5dda80
cmp dl, byte [eax + 2]
je 0x5dda8b
inc esi
add eax, 4
cmp esi, 0x10
jb 0x5dda66
jmp 0x5dda90
mov al, byte [ebx + esi*4]
jmp 0x5dda92
mov al, 0x80
mov ah, al
mov byte [esp + 0x60], al
mov word [edi + 0x1c], ax
mov byte [edi + 0x1e], al
mov byte [edi + 0x1f], 0
test byte [esp + 0x68], 0x20
jne 0x5ddab8
or edx, 0xffffffff
mov word [edi + 0x3c], dx
mov byte [edi + 0x3e], dl
mov byte [edi + 0x3f], 0
mov edx, dword [esp + 0x40]
xor eax, eax
mov al, byte [ebp + 0xb]
xor ecx, ecx
mov cl, byte [ebp + 0xa]
push 0
shl eax, 8
add eax, ecx
push eax
push edx
call fcn.005ea1ab
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov eax, ecx
dec ecx
test eax, eax
mov dword [esp + 0x28], ecx
je 0x5ddee1
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
imul eax, ecx
mov cl, byte [esp + 0x5c]
mov ebx, dword [esp + 0x2c]
add eax, 8
mov dword [esp + 0x48], eax
jmp 0x5ddb0a
mov cl, byte [esp + 0x5c]
mov edx, dword [esp + 0x38]
xor esi, esi
cmp edx, 0x1e0
jb 0x5ddb22
cmp dword [esp + 0x30], 0x280
jae 0x5ddb7e
mov eax, 0x1e0
sub eax, edx
shr eax, 1
add edx, eax
cmp dword [esp + 0x28], edx
ja 0x5ddb39
cmp dword [esp + 0x28], eax
jae 0x5ddb7a
cmp cl, 0x10
jne 0x5ddb7a
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5ddb7a
mov al, byte [0x418be5]
test al, al
jne 0x5ddb7a
xor ecx, ecx
test ebx, ebx
jbe 0x5ddd70
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov ecx, ebx
jmp 0x5ddd70
mov edx, dword [esp + 0x38]
cmp edx, 0x1e0
jb 0x5ddb90
cmp dword [esp + 0x30], 0x280
jae 0x5ddbaa
cmp cl, 0x10
jne 0x5ddbaa
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5ddbaa
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
push eax
push ebp
push ecx
jmp 0x5ddbb5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
push edx
push ebp
push eax
call fcn.005e84c5
add esp, 0xc
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x34], ecx
jbe 0x5ddd70
mov dl, byte [esp + 0x5c]
mov al, byte [esi + ebp]
cmp dl, 1
mov byte [esp + 0x60], al
jne 0x5ddbeb
test cl, 1
je 0x5ddbe4
and al, 0xf
jmp 0x5ddbe7
shr al, 4
mov byte [esp + 0x60], al
mov dl, byte [0x418be4]
test dl, dl
jne 0x5ddcc0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x24]
and ecx, 0xff
mov ebx, dword [esp + 0x18]
lea eax, [edx + ecx*4]
mov cl, byte [edx + ecx*4]
mov dl, byte [eax + 1]
mov byte [esp + 0x14], cl
mov cl, byte [eax + 2]
mov byte [esp + 0x15], dl
mov dl, byte [eax + 3]
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x44]
xor eax, eax
mov byte [esp + 0x17], dl
shl ecx, 4
je 0x5ddc63
lea edi, [ebx + 2]
mov dl, byte [esp + 0x14]
cmp byte [edi - 2], dl
jne 0x5ddc5b
mov dl, byte [esp + 0x15]
cmp byte [edi - 1], dl
jne 0x5ddc5b
mov dl, byte [esp + 0x16]
cmp byte [edi], dl
jne 0x5ddc5b
mov dl, byte [esp + 0x17]
cmp byte [edi + 1], dl
je 0x5ddc63
inc eax
add edi, 4
cmp eax, ecx
jb 0x5ddc38
cmp eax, ecx
jb 0x5ddcb0
xor eax, eax
test ecx, ecx
jbe 0x5ddcb0
lea edx, [ebx + 2]
cmp byte [edx - 2], 0xff
jne 0x5ddc87
cmp byte [edx - 1], 0xff
jne 0x5ddc87
cmp byte [edx], 0xff
jne 0x5ddc87
cmp byte [edx + 1], 0xff
je 0x5ddc91
inc eax
add edx, 4
cmp eax, ecx
jb 0x5ddc70
jmp 0x5ddcb0
mov cl, byte [esp + 0x14]
mov dl, byte [esp + 0x15]
mov byte [ebx + eax*4], cl
mov cl, byte [esp + 0x16]
mov byte [ebx + eax*4 + 1], dl
mov dl, byte [esp + 0x17]
mov byte [ebx + eax*4 + 2], cl
mov byte [ebx + eax*4 + 3], dl
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x60], al
cmp byte [esp + 0x5c], 1
jne 0x5dddb6
mov dl, byte [esp + 0x10]
shl dl, 1
test al, 1
mov byte [esp + 0x10], dl
je 0x5ddce0
or dl, 1
mov byte [esp + 0x10], dl
mov dl, byte [esp + 0x11]
shl dl, 1
test al, 2
mov byte [esp + 0x11], dl
je 0x5ddcf5
or dl, 1
mov byte [esp + 0x11], dl
mov dl, byte [esp + 0x12]
shl dl, 1
test al, 4
mov byte [esp + 0x12], dl
je 0x5ddd0a
or dl, 1
mov byte [esp + 0x12], dl
mov dl, byte [esp + 0x13]
shl dl, 1
test al, 8
mov byte [esp + 0x13], dl
je 0x5ddd20
mov al, dl
or al, 1
mov byte [esp + 0x13], al
test cl, 1
je 0x5ddd26
inc esi
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x5ddd63
mov dl, byte [esp + 0x10]
mov al, byte [esp + 0x11]
mov byte [esi + ebp - 4], dl
mov dl, byte [esp + 0x12]
mov byte [esi + ebp - 3], al
mov al, byte [esp + 0x13]
mov byte [esi + ebp - 2], dl
mov byte [esi + ebp - 1], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
inc ecx
cmp ecx, ebx
mov dword [esp + 0x34], ecx
jb 0x5ddbcb
mov eax, ecx
and eax, 7
je 0x5dddc8
cmp byte [esp + 0x5c], 1
jne 0x5dddbc
mov dl, byte [esp + 0x10]
shr ecx, 1
and ecx, 3
sub esi, ecx
mov ecx, 8
sub ecx, eax
mov al, byte [esp + 0x11]
shl dl, cl
shl al, cl
inc esi
mov byte [esi + ebp - 1], dl
mov dl, byte [esp + 0x12]
mov byte [esi + ebp], al
mov al, byte [esp + 0x13]
inc esi
shl dl, cl
shl al, cl
mov byte [esi + ebp], dl
mov byte [esi + ebp + 1], al
jmp 0x5dddc8
mov byte [esi + ebp], al
inc esi
jmp 0x5ddd63
and ecx, 3
sub esi, ecx
mov cl, byte [esp + 0x60]
mov byte [esi + ebp], cl
mov edx, dword [esp + 0x48]
push 0
push edx
push edi
call fcn.005ea1ab
mov al, byte [esp + 0x68]
add esp, 0xc
cmp al, 1
jne 0x5dde53
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
shr eax, 2
mov dword [esp + 0x54], eax
je 0x5dde32
mov eax, ebp
mov edi, dword [esp + 0x50]
xor ecx, ecx
mov esi, 4
mov byte [esp + 0x60], 4
mov ebx, dword [esp + 0x34]
mov edx, ecx
shr edx, 2
add edx, ebx
mov bl, byte [eax]
inc eax
mov byte [edx + edi], bl
mov ebx, dword [esp + 0x1c]
add ecx, ebx
dec esi
jne 0x5dde07
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
jb 0x5dddf7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.005e86bb
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
add esp, 0xc
jmp 0x5ddebe
cmp dword [esp + 0x38], 0x1e0
jb 0x5dde67
cmp dword [esp + 0x30], 0x280
jae 0x5ddeaf
cmp dword [esp + 0x30], ebx
jae 0x5ddeaf
cmp byte [esp + 0x5c], 0x10
jne 0x5ddeaf
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5ddeaf
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov esi, ebx
sub esi, edx
shr esi, 1
push esi
push eax
push edi
call fcn.005e86bb
mov ecx, dword [esp + 0x3c]
push ecx
push ebp
push edi
call fcn.005e86bb
mov edx, dword [esp + 0x54]
push esi
push edx
push edi
call fcn.005e86bb
add esp, 0x24
jmp 0x5ddebe
mov eax, dword [esp + 0x1c]
push eax
push ebp
push edi
call fcn.005e86bb
add esp, 0xc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
mov ecx, eax
dec eax
sub esi, edx
test ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], esi
jne 0x5ddb06
jmp 0x5ddee5
mov edi, dword [esp + 0x20]
test byte [esp + 0x68], 1
jne 0x5ddf69
cmp dword [esp + 0x38], 0x1d1
jb 0x5ddf00
cmp dword [esp + 0x30], 0x280
jae 0x5ddf69
cmp byte [esp + 0x5c], 0x10
jne 0x5ddf69
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5ddf69
mov eax, dword [esp + 0x4c]
push 0
add eax, 0xffffd808
push eax
push edi
call fcn.005ea1ab
add esp, 0xc
xor esi, esi
mov eax, 0x415030
mov dl, byte [eax]
mov bl, byte [eax + 1]
inc eax
xor ecx, ecx
test bl, bl
jbe 0x5ddf48
mov edi, dword [esp + 0x3c]
xor ebx, ebx
mov byte [esi + edi], dl
mov bl, byte [eax]
inc esi
inc ecx
cmp ecx, ebx
jb 0x5ddf37
inc eax
cmp eax, 0x415a16
jl 0x5ddf2b
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
push 0x2800
push ecx
push edi
call fcn.005e86bb
add esp, 0xc
jmp 0x5ddf80
mov edx, dword [esp + 0x4c]
push 0
add edx, 8
push edx
push edi
call fcn.005ea1ab
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov bl, byte [esp + 0x5c]
mov byte [ebp], 0x52
cmp bl, 1
mov byte [ebp + 1], 0x47
mov byte [ebp + 2], 0x42
mov byte [ebp + 3], 0x20
jne 0x5ddfbd
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [ebp + 4]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x5ddfb5
mov dl, byte [eax + esi]
shr dl, 2
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, 0x40
jb 0x5ddfa2
jmp 0x5ddfeb
mov ecx, dword [esp + 0x18]
lea eax, [ebp + 4]
inc ecx
mov esi, 0x100
mov dl, byte [ecx + 1]
add ecx, 4
shr dl, 2
mov byte [eax], dl
mov dl, byte [ecx - 4]
inc eax
shr dl, 2
mov byte [eax], dl
mov dl, byte [ecx - 5]
inc eax
shr dl, 2
mov byte [eax], dl
inc eax
dec esi
jne 0x5ddfca
mov eax, dword [esp + 0x4c]
push 0
add eax, 8
push eax
push edi
call fcn.005ea1ab
add esp, 0xc
cmp bl, 1
pop esi
jne 0x5de008
push 0x34
jmp 0x5de00d
push 0x304
push ebp
push edi
call fcn.005e86bb
add esp, 0xc
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005ea245
push edi
call fcn.005ea245
mov edx, dword [esp + 0x54]
push edx
call fcn.005e7d5e
push ebp
call fcn.005e7d5e
mov eax, dword [esp + 0x68]
add esp, 0x10
and eax, 0xff
pop edi
pop ebp
pop ebx
add esp, 0x48
ret