Function at 0x470910
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x67c
push ebx
push 0x624
lea eax, [esp + 0x60]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x1c], ebx
call fcn.00484630
push ebx
push 0x624
lea eax, [esp + 0x70]
push 1
push eax
call fcn.0048a775
add esp, 0x1c
cmp eax, 0x624
jne 0x470e42
mov al, byte [esp + 0x75]
sub al, 1
cmp al, 7
ja 0x470e42
mov dh, byte [esp + 0x8b]
mov dl, byte [esp + 0x8a]
inc dh
mov al, dh
mov byte [esp + 0x8b], dh
inc dl
sub al, 1
mov byte [esp + 0x8a], dl
cmp al, 0x7f
ja 0x470e42
mov eax, dword [esp + 0x2ce]
mov ecx, 0x20
movups xmm0, xmmword [esp + 0x2be]
push ebp
push esi
push edi
lea esi, [esp + 0x98]
mov edi, 0x551d96
rep movsd dword es:[edi], dword [esi]
mov dword [0x5511f3], eax
xor esi, esi
movzx eax, byte [esp + 0x81]
mov dword [0x551eac], eax
movzx eax, dh
mov word [0x551e9e], ax
mov dword [0x551ea2], 0x6007d
mov dword [esp + 0x18], esi
movups xmmword [0x5511e3], xmm0
test dl, dl
je 0x470c30
xor ebp, ebp
lea edi, [esi + 0x40]
nop dword [eax]
push 1
push 0xa010
call fcn.00489078
add esp, 8
mov dword [ebp*4 + 0x551ee0], eax
test eax, eax
je 0x470e27
cmp byte [esp + 0x82], 0
mov word [ebp*2 + 0x550fe0], di
je 0x470aca
push ebx
push 1
lea eax, [esp + 0x28]
push 2
push eax
call fcn.0048a775
mov ax, word [esp + 0x30]
rol ax, 8
push ebx
movzx eax, ax
push 0x40
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push 1
push eax
call fcn.0048a775
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
add esp, 0x20
mov dword [esp + 0x24], ecx
xor edx, edx
mov eax, 0x40
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
xor esi, esi
mov bl, 0x80
cmp dword [0x551eac], esi
jle 0x470ab1
xor eax, eax
nop
test byte [ecx], bl
je 0x470a9f
add eax, edx
mov ecx, edi
lea edx, [eax + eax*4]
add edx, dword [ebp*4 + 0x551ee0]
call fcn.00470e70
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
inc esi
shr bl, 1
movsx eax, si
cmp eax, dword [0x551eac]
jl 0x470a80
mov eax, dword [esp + 0x10]
inc ecx
add edx, 0x20
sub eax, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jne 0x470a70
mov ebx, edi
jmp 0x470b1f
cmp dword [0x551eac], 0
mov dword [esp + 0x10], 0
jle 0x470b28
xor eax, eax
nop dword [eax]
lea esi, [eax + eax*4]
mov edi, 0x40
nop dword [eax + eax]
mov edx, dword [ebp*4 + 0x551ee0]
mov ecx, ebx
add edx, esi
call fcn.00470e70
add esi, 0xa0
sub edi, 1
jne 0x470af0
mov ecx, dword [esp + 0x10]
inc ecx
movsx eax, cx
mov dword [esp + 0x10], ecx
cmp eax, dword [0x551eac]
jl 0x470ae0
mov esi, dword [esp + 0x18]
mov edi, 0x40
movzx eax, si
mov edx, dword [eax*4 + 0x551ee0]
test edx, edx
je 0x470b5b
movsx eax, word [eax*2 + 0x550fe0]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x470b5b
nop word [eax + eax]
cmp byte [eax + edx], 0
jne 0x470b7a
inc eax
cmp eax, ecx
jb 0x470b50
mov eax, dword [ebp*4 + 0x551ee0]
test eax, eax
je 0x470b7a
push eax
call fcn.00489083
add esp, 4
mov dword [ebp*4 + 0x551ee0], 0
mov dl, byte [esp + 0x96]
inc esi
movsx ebp, si
movzx eax, dl
mov dword [esp + 0x18], esi
cmp ebp, eax
jl 0x4709f0
test dl, dl
je 0x470c30
xor edi, edi
xor ebx, ebx
cmp dword [edi*4 + 0x551ee0], 0
je 0x470c1d
xor esi, esi
lea ebp, [esi + 0x40]
xor edx, edx
cmp dword [0x551eac], edx
jle 0x470c0e
xor eax, eax
nop
add eax, esi
lea eax, [eax + eax*4]
add eax, dword [edi*4 + 0x551ee0]
mov cl, byte [eax + 3]
cmp cl, 8
je case.0x470bef.3
cmp cl, 0xe
jne case.0x470bef.5
movzx ecx, byte [eax + 4]
shr ecx, 4
add ecx, 0xfffffffd
cmp ecx, 6
ja case.0x470bef.5
movzx ecx, byte [ecx + 0x470e68]
jmp dword [ecx*4 + 0x470e5c]
mov byte [eax + 4], 0xc0
jmp case.0x470bef.5
mov word [eax + 3], 0
inc edx
movsx eax, dx
cmp eax, dword [0x551eac]
jl 0x470bc0
add esi, 0x20
sub ebp, 1
jne 0x470bb3
mov dl, byte [esp + 0x96]
inc ebx
movzx eax, dl
movsx edi, bx
cmp edi, eax
jl 0x470ba0
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
movsx edi, bp
lea edx, [esp + 0x2ea]
mov eax, edi
imul ecx, edi, 0x17
shl eax, 4
sub eax, edi
movups xmm0, xmmword [edx + eax*2]
lea edx, [edx + eax*2]
mov eax, dword [edx + 0x10]
lea esi, [edi*4]
add ecx, 0x55120f
mov dword [esp + 0x10], edx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov ax, word [edx + 0x14]
mov word [ecx + 0x14], ax
lea eax, [esp + 0x118]
add eax, esi
mov dword [esp + 0x14], eax
cmp dword [eax], 0
je 0x470e08
lea ecx, [ebp + 1]
call fcn.004208e0
test al, al
je 0x470e27
mov ecx, dword [esi + 0x550bc4]
call fcn.004357a0
mov esi, dword [esi + 0x550bc4]
mov ecx, dword [esp + 0x10]
add esi, 0xdc
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov ax, word [ecx + 0x14]
mov ecx, dword [esp + 0x14]
mov word [esi + 0x14], ax
mov ecx, dword [ecx]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [esi + 0x28], edx
mov al, byte [esp + edi + 0x2ab]
shl al, 4
mov byte [esi + 0x18], al
mov al, byte [esp + edi + 0x28c]
mov byte [esi + 0x24], al
mov dword [esp + 0x10], edx
lea edx, [edi*4]
mov ecx, dword [esp + edx + 0x194]
mov edi, ecx
mov eax, ecx
and edi, 0xff0000
shr eax, 0x10
or edi, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edi, 8
shl eax, 8
or edi, eax
mov dword [esi + 0x2c], edi
mov ecx, dword [esp + edx + 0x210]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [esi + 0x30], edx
cmp edx, 2
jge 0x470d80
mov dword [esi + 0x30], 2
mov edx, 2
mov ecx, dword [esp + 0x10]
lea eax, [edi + edx]
cmp eax, ecx
jle 0x470daa
cmp edi, ecx
jl 0x470da3
xor edx, edx
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
xor edi, edi
jmp 0x470daa
mov edx, ecx
sub edx, edi
mov dword [esi + 0x30], edx
lea eax, [edi + edx]
cmp eax, 2
jle 0x470db8
or byte [esi + 0x25], 1
jmp 0x470dc6
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea eax, [ecx + 0x1f]
push eax
call fcn.004896c5
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x470e20
push ebx
push dword [esi + 0x28]
add eax, 0xf
push 1
push eax
mov dword [esi + 0x1c], eax
call fcn.0048a775
mov ecx, dword [esi + 0x28]
add esp, 0x10
cmp eax, ecx
jge 0x470e08
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, eax
push 0
push ecx
call fcn.00484630
add esp, 0xc
inc ebp
cmp bp, 0x1f
jl 0x470c32
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x67c
ret
mov dword [esi + 0x1c], 0
push str.Not_enough_memory_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x67c
ret
push str.Error:_This_file_is_either_not_a_module__or_is_not_supported.
call dword [0x54e480]
add esp, 4
xor al, al
pop ebx
add esp, 0x67c
ret