Function at 0x47b420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x824], eax
mov eax, dword [esp + 0x82c]
mov ecx, dword [esp + 0x830]
push ebx
push ebp
push 0x5da6e8
xor ebp, ebp
push eax
mov dword [esp + 0x14], ecx
mov dword [ecx], ebp
call fcn.005ac643
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47b47a
lea eax, [ebp + 3]
pop ebp
pop ebx
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.005aac48
add esp, 0x828
ret
push 0
push 0
push ebx
call fcn.005ad4e7
push ebx
push 6
lea eax, [esp + 0x24]
push 1
push eax
call fcn.005ad23f
add esp, 0x1c
cmp eax, 6
je 0x47b4c0
push ebx
call fcn.005ac46d
add esp, 4
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.005aac48
add esp, 0x828
ret
push esi
mov eax, 6
mov ecx, str.GIF87a
lea edx, [esp + 0x14]
push edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x47b4e8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x47b4d0
test eax, eax
je 0x47b545
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47b537
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x47b545
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47b537
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x47b545
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47b537
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x47b545
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x47b545
test esi, esi
mov eax, 1
jg 0x47b547
or eax, 0xffffffff
jmp 0x47b547
xor eax, eax
test eax, eax
je 0x47b5e8
mov eax, 6
mov ecx, str.GIF89a
lea edx, [esp + 0x18]
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x47b578
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x47b560
test eax, eax
je 0x47b5d5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47b5c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x47b5d5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47b5c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x47b5d5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x47b5c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x47b5d5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x47b5d5
test esi, esi
mov eax, 1
jg 0x47b5d7
or eax, 0xffffffff
jmp 0x47b5d7
xor eax, eax
test eax, eax
je 0x47b5e8
push ebx
call fcn.005ac46d
mov eax, 5
jmp 0x47b637
push ebx
push 7
lea eax, [esp + 0x34]
push 1
push eax
call fcn.005ad23f
add esp, 0x10
cmp eax, 7
jne 0x47b62c
mov al, byte [esp + 0x30]
movzx ecx, al
and ecx, 7
add ecx, 1
test al, al
jns 0x47b653
mov esi, 3
shl esi, cl
push ebx
lea edx, [esp + 0x38]
push esi
push 1
push edx
call fcn.005ad23f
add esp, 0x10
cmp eax, esi
je 0x47b678
push ebx
call fcn.005ac46d
mov eax, 7
add esp, 4
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005aac48
add esp, 0x828
ret
mov eax, 3
shl eax, cl
lea ecx, [esp + 0x34]
push eax
push 0
push ecx
call fcn.00475d50
mov al, 0xff
add esp, 0xc
mov byte [esp + 0x39], al
mov byte [esp + 0x38], al
mov byte [esp + 0x37], al
push ebx
push 1
lea edx, [esp + 0x28]
push 1
push edx
call fcn.005ad23f
add esp, 0x10
cmp eax, 1
jne 0x47b62c
nop
mov al, byte [esp + 0x20]
cmp al, 0x21
je 0x47b793
cmp al, 0x2c
je 0x47b6be
cmp al, 0x3b
jne 0x47b81b
push ebx
call fcn.005ac46d
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax], ebp
xor eax, eax
jmp 0x47b63a
push ebx
push 9
lea eax, [esp + 0x29]
push 1
push eax
call fcn.005ad23f
add esp, 0x10
cmp eax, 9
jne 0x47b62c
movzx eax, byte [esp + 0x29]
test al, al
jns 0x47b70d
and eax, 7
add eax, 1
mov ecx, eax
mov esi, 3
shl esi, cl
push ebx
lea ecx, [esp + 0x538]
push esi
push 1
push ecx
call fcn.005ad23f
add esp, 0x10
cmp eax, esi
jne 0x47b62c
push ebx
push 1
lea edx, [esp + 0x1a]
push 1
push edx
call fcn.005ad23f
add esp, 0x10
cmp eax, 1
jne 0x47b62c
push ebx
push 1
lea eax, [esp + 0x18]
push 1
push eax
call fcn.005ad23f
add esp, 0x10
cmp eax, 1
jne 0x47b62c
mov cl, byte [esp + 0x10]
movzx eax, cl
xor edi, edi
test eax, eax
jle 0x47b787
cmp eax, 0x200
mov esi, 0x200
jg 0x47b75e
mov esi, eax
push ebx
push esi
lea ecx, [esp + 0x33c]
push 1
push ecx
call fcn.005ad23f
add esp, 0x10
cmp eax, esi
jne 0x47b62c
mov cl, byte [esp + 0x10]
movzx eax, cl
add edi, esi
cmp edi, eax
jl 0x47b750
test cl, cl
jne 0x47b728
add ebp, 1
jmp 0x47b81b
push ebx
push 1
lea edx, [esp + 0x1b]
push 1
push edx
call fcn.005ad23f
add esp, 0x10
cmp eax, 1
jne 0x47b62c
mov edi, edi
push ebx
push 1
lea eax, [esp + 0x19]
push 1
push eax
call fcn.005ad23f
add esp, 0x10
cmp eax, 1
jne 0x47b62c
mov cl, byte [esp + 0x11]
test cl, cl
je 0x47b81b
movzx eax, cl
xor edi, edi
test eax, eax
jle 0x47b817
lea esp, [esp]
cmp eax, 0x200
mov esi, 0x200
jg 0x47b7ee
mov esi, eax
push ebx
push esi
lea ecx, [esp + 0x33c]
push 1
push ecx
call fcn.005ad23f
add esp, 0x10
cmp eax, esi
jne 0x47b62c
mov cl, byte [esp + 0x11]
movzx eax, cl
add edi, esi
cmp edi, eax
jl 0x47b7e0
test cl, cl
jne 0x47b7b0
push ebx
push 1
lea edx, [esp + 0x28]
push 1
push edx
call fcn.005ad23f
add esp, 0x10
cmp eax, 1
je 0x47b690
jmp 0x47b62c