Function at 0x5de050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
push 0xc90
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call fcn.005e7e75
push 0xc90
mov esi, eax
call fcn.005e7e75
push 0xc800
mov dword [esp + 0x24], eax
call fcn.005e7e75
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
push 0x8000
push eax
call fcn.005ec51f
mov ecx, dword [esp + 0x68]
push 0x180
mov edi, eax
push 0x8302
push ecx
mov dword [esp + 0x34], edi
call fcn.005ec51f
push 0x20
push esi
push edi
mov dword [esp + 0x7c], eax
call fcn.005e84c5
xor ebx, ebx
xor edx, edx
mov bl, byte [esi + 0x13]
mov dl, byte [esi + 0x12]
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x17]
mov cl, byte [esi + 0x16]
shl ebx, 8
add ebx, edx
xor edx, edx
mov dl, byte [esi + 0xb]
add esp, 0x2c
shl eax, 8
add eax, ecx
mov ebp, edx
mov dword [esp + 0x54], eax
xor eax, eax
mov al, byte [esi + 0xa]
mov dword [esp + 0x48], ebx
shl ebp, 8
add ebp, eax
mov eax, dword [esi + 0x1c]
cmp eax, 4
je 0x5de18f
cmp eax, 8
je 0x5de12b
push 0x416770
mov byte [esp + 0x24], 0
call fcn.005e8417
add esp, 4
jmp 0x5de5db
mov byte [esp + 0x20], 0x10
mov edi, dword [esp + 0x20]
and edi, 0xff
mov dword [esp + 0x2c], edi
shl edi, 6
push edi
mov dword [esp + 0x38], edi
call fcn.005e7e75
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
add esp, 4
mov dword [esp + 0x3c], eax
test ebx, ebx
jbe 0x5de17c
mov edi, dword [esp + 0x38]
mov ecx, ebx
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 + 0x34]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c]
dec ecx
je 0x5de196
sub ecx, 0xf
jne 0x5de1a8
mov ecx, eax
imul ecx, ebx
jmp 0x5de1a4
mov byte [esp + 0x20], 1
jmp 0x5de130
lea ecx, [ebx + 7]
shr ecx, 1
and ecx, 0x7ffc
imul ecx, eax
mov dword [esp + 0x38], ecx
mov cl, byte [0x418bc4]
test cl, cl
je 0x5de1dd
mov cl, byte [0x418bbc]
mov byte [esi], cl
mov edx, dword [0x418bbc]
shr edx, 8
mov byte [esi + 1], dl
mov cl, byte [fcn.00418bc0]
mov byte [esi + 2], cl
mov edx, dword [fcn.00418bc0]
shr edx, 8
mov byte [esi + 3], dl
jmp 0x5de1ec
mov byte [esi], 0x41
mov byte [esi + 1], 0x57
mov byte [esi + 2], 0x42
mov byte [esi + 3], 0x4d
mov edx, dword [esp + 0x50]
mov ecx, ebx
mov byte [esi + 6], al
push 8
shr ecx, 8
shr eax, 8
push esi
push edx
mov byte [esi + 4], bl
mov byte [esi + 5], cl
mov byte [esi + 7], al
call fcn.005e86bb
mov eax, dword [esp + 0x20]
push 0
push 0x36
push eax
call fcn.005ea1ab
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push edi
push ecx
push edx
call fcn.005e84c5
mov al, byte [esp + 0x44]
add esp, 0x24
cmp al, 0x10
jne 0x5de269
cmp ebp, 0x436
je 0x5de269
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, eax
xor edi, edi
sub ecx, edx
lea edx, [ebp - 0x36]
cmp edi, edx
jae 0x5de25a
mov dl, byte [ecx + eax]
mov byte [eax], dl
jmp 0x5de25d
mov byte [eax], 0xff
inc edi
inc eax
cmp edi, 0x400
jb 0x5de24c
jmp 0x5de280
test edi, edi
jbe 0x5de280
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dl, byte [eax + ecx]
mov byte [eax], dl
inc eax
dec edi
jne 0x5de277
mov eax, dword [esp + 0x14]
push 0
push ebp
push eax
call fcn.005ea1ab
mov ebp, dword [esp + 0x60]
add esp, 0xc
xor edi, edi
mov ecx, ebp
dec ebp
test ecx, ecx
mov dword [esp + 0x54], ebp
je 0x5de50c
imul ebp, ebx
add ebp, 8
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x2c]
dec eax
je 0x5de335
sub eax, 0xf
jne 0x5de4f3
cmp dword [esp + 0x3c], 0x1e0
jb 0x5de320
cmp ebx, 0x280
jb 0x5de320
mov ecx, ebx
and ecx, 7
jne 0x5de2e2
mov dword [esp + 0x24], 0
jmp 0x5de2ed
mov eax, 8
sub eax, ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
add edx, ebx
push edx
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.005e84c5
mov ecx, dword [esp + 0x5c]
push 0
push ebp
push ecx
call fcn.005ea1ab
mov edx, dword [esp + 0x68]
push ebx
push esi
push edx
call fcn.005e86bb
add esp, 0x24
jmp 0x5de4f3
mov eax, dword [esp + 0x24]
add edi, eax
lea eax, [ebx + 3]
and eax, 0xfffc
mov dword [esp + 0x24], eax
push eax
jmp 0x5de2f4
mov eax, dword [esp + 0x14]
lea ebp, [ebx + 7]
mov dword [esp + 0x40], ebp
xor edi, edi
shr ebp, 1
and ebp, 0x7ffc
push ebp
push esi
push eax
mov dword [esp + 0x50], ebp
call fcn.005e84c5
add esp, 0xc
xor eax, eax
test ebx, ebx
jbe 0x5de423
mov cl, byte [edi + esi]
mov edx, eax
and edx, 1
mov dword [esp + 0x30], edx
je 0x5de376
and cl, 0xf
jmp 0x5de379
shr cl, 4
mov dl, byte [esp + 0x10]
shl dl, 1
test cl, 1
mov byte [esp + 0x10], dl
je 0x5de38f
or dl, 1
mov byte [esp + 0x10], dl
mov dl, byte [esp + 0x11]
shl dl, 1
test cl, 2
mov byte [esp + 0x11], dl
je 0x5de3a5
or dl, 1
mov byte [esp + 0x11], dl
mov dl, byte [esp + 0x12]
shl dl, 1
test cl, 4
mov byte [esp + 0x12], dl
je 0x5de3bb
or dl, 1
mov byte [esp + 0x12], dl
mov dl, byte [esp + 0x13]
shl dl, 1
test cl, 8
mov byte [esp + 0x13], dl
je 0x5de3d3
mov cl, dl
or cl, 1
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5de3dc
inc edi
mov ecx, eax
and ecx, 7
cmp cl, 7
jne 0x5de41a
mov dl, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
mov byte [edi + esi - 4], dl
mov dl, byte [esp + 0x12]
mov byte [edi + esi - 3], cl
mov cl, byte [esp + 0x13]
mov byte [edi + esi - 2], dl
mov byte [edi + esi - 1], cl
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
inc eax
cmp eax, ebx
jb 0x5de363
mov edx, eax
and edx, 7
je 0x5de461
mov ecx, 8
shr eax, 1
sub ecx, edx
mov dl, byte [esp + 0x10]
and eax, 3
shl dl, cl
sub edi, eax
mov al, byte [esp + 0x11]
shl al, cl
mov byte [edi + esi], dl
mov dl, byte [esp + 0x12]
inc edi
shl dl, cl
mov byte [edi + esi], al
mov al, byte [esp + 0x13]
inc edi
shl al, cl
mov byte [edi + esi], dl
inc edi
inc edi
mov byte [edi + esi - 1], al
mov ecx, ebp
mov edx, dword [esp + 0x50]
imul ecx, dword [esp + 0x54]
add ecx, 8
push 0
push ecx
push edx
call fcn.005ea1ab
mov eax, dword [esp + 0x4c]
add esp, 0xc
shr eax, 3
and eax, 0x1fff
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], eax
jbe 0x5de4dc
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x30], 4
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov edx, ecx
shr edx, 2
add edx, ebx
mov bl, byte [eax]
inc eax
mov byte [edx + ebp], bl
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
add ecx, ebp
dec edx
mov dword [esp + 0x30], edx
jne 0x5de4a1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
inc ecx
cmp ecx, edx
mov dword [esp + 0x28], ecx
jb 0x5de497
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
push ebp
push eax
push ecx
call fcn.005e86bb
mov ebp, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [esp + 0x54]
sub ebp, ebx
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], ebp
jne 0x5de2af
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
push 0
lea ebp, [eax + 8]
push ebp
push edi
mov dword [esp + 0x54], ebp
call fcn.005ea1ab
mov eax, dword [esp + 0x38]
add esp, 0xc
dec eax
mov byte [esi], 0x52
mov byte [esi + 1], 0x47
mov byte [esi + 2], 0x42
mov byte [esi + 3], 0x20
je 0x5de5a4
sub eax, 0xf
jne 0x5de5db
mov ecx, dword [esp + 0x1c]
lea edi, [esi + 4]
mov dword [esp + 0x54], 0x100
lea ebx, [ecx + 1]
jmp 0x5de55e
mov ebp, dword [esp + 0x48]
mov dl, byte [ebx + 1]
push 0
shr dl, 2
mov byte [edi], dl
mov al, byte [ebx]
inc edi
push ebp
mov ebp, dword [esp + 0x58]
shr al, 2
mov byte [edi], al
mov cl, byte [ebx - 1]
inc edi
push ebp
shr cl, 2
mov byte [edi], cl
inc edi
call fcn.005ea1ab
push 0x304
push esi
push ebp
call fcn.005e86bb
mov eax, dword [esp + 0x6c]
add esp, 0x18
add ebx, 4
dec eax
mov dword [esp + 0x54], eax
jne 0x5de55a
jmp 0x5de5db
xor eax, eax
lea ecx, [esi + 4]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x5de5c0
mov edx, dword [esp + 0x1c]
mov dl, byte [eax + edx]
shr dl, 2
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, 0x40
jb 0x5de5a9
push 0
push ebp
push edi
call fcn.005ea1ab
push 0x34
push esi
push edi
call fcn.005e86bb
add esp, 0x18
mov eax, dword [esp + 0x14]
push eax
call fcn.005ea245
mov ecx, dword [esp + 0x54]
push ecx
call fcn.005ea245
mov edx, dword [esp + 0x20]
push edx
call fcn.005e7d5e
push esi
call fcn.005e7d5e
mov eax, dword [esp + 0x30]
add esp, 0x10
and eax, 0xff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret