Function at 0x470880
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.00484500
push ebx
push 0x624
lea eax, [esp + 0x70]
push 1
push eax
call fcn.0048a645
add esp, 0x1c
cmp eax, 0x624
jne 0x470db2
mov al, byte [esp + 0x75]
sub al, 1
cmp al, 7
ja 0x470db2
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 0x470db2
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 0x470ba0
xor ebp, ebp
lea edi, [esi + 0x40]
nop dword [eax]
push 1
push 0xa010
call fcn.00488f48
add esp, 8
mov dword [ebp*4 + 0x551ee0], eax
test eax, eax
je 0x470d97
cmp byte [esp + 0x82], 0
mov word [ebp*2 + 0x550fe0], di
je 0x470a3a
push ebx
push 1
lea eax, [esp + 0x28]
push 2
push eax
call fcn.0048a645
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.0048a645
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 0x470a21
xor eax, eax
nop
test byte [ecx], bl
je 0x470a0f
add eax, edx
mov ecx, edi
lea edx, [eax + eax*4]
add edx, dword [ebp*4 + 0x551ee0]
call fcn.00470de0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
inc esi
shr bl, 1
movsx eax, si
cmp eax, dword [0x551eac]
jl 0x4709f0
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 0x4709e0
mov ebx, edi
jmp 0x470a8f
cmp dword [0x551eac], 0
mov dword [esp + 0x10], 0
jle 0x470a98
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.00470de0
add esi, 0xa0
sub edi, 1
jne 0x470a60
mov ecx, dword [esp + 0x10]
inc ecx
movsx eax, cx
mov dword [esp + 0x10], ecx
cmp eax, dword [0x551eac]
jl 0x470a50
mov esi, dword [esp + 0x18]
mov edi, 0x40
movzx eax, si
mov edx, dword [eax*4 + 0x551ee0]
test edx, edx
je 0x470acb
movsx eax, word [eax*2 + 0x550fe0]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x470acb
nop word [eax + eax]
cmp byte [eax + edx], 0
jne 0x470aea
inc eax
cmp eax, ecx
jb 0x470ac0
mov eax, dword [ebp*4 + 0x551ee0]
test eax, eax
je 0x470aea
push eax
call fcn.00488f53
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 0x470960
test dl, dl
je 0x470ba0
xor edi, edi
xor ebx, ebx
cmp dword [edi*4 + 0x551ee0], 0
je 0x470b8d
xor esi, esi
lea ebp, [esi + 0x40]
xor edx, edx
cmp dword [0x551eac], edx
jle 0x470b7e
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.0x470b5f.3
cmp cl, 0xe
jne case.0x470b5f.5
movzx ecx, byte [eax + 4]
shr ecx, 4
add ecx, 0xfffffffd
cmp ecx, 6
ja case.0x470b5f.5
movzx ecx, byte [ecx + 0x470dd8]
jmp dword [ecx*4 + 0x470dcc]
mov byte [eax + 4], 0xc0
jmp case.0x470b5f.5
mov word [eax + 3], 0
inc edx
movsx eax, dx
cmp eax, dword [0x551eac]
jl 0x470b30
add esi, 0x20
sub ebp, 1
jne 0x470b23
mov dl, byte [esp + 0x96]
inc ebx
movzx eax, dl
movsx edi, bx
cmp edi, eax
jl 0x470b10
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 0x470d78
lea ecx, [ebp + 1]
call fcn.004207c0
test al, al
je 0x470d97
mov ecx, dword [esi + 0x550bc4]
call fcn.004356e0
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 0x470cf0
mov dword [esi + 0x30], 2
mov edx, 2
mov ecx, dword [esp + 0x10]
lea eax, [edi + edx]
cmp eax, ecx
jle 0x470d1a
cmp edi, ecx
jl 0x470d13
xor edx, edx
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
xor edi, edi
jmp 0x470d1a
mov edx, ecx
sub edx, edi
mov dword [esi + 0x30], edx
lea eax, [edi + edx]
cmp eax, 2
jle 0x470d28
or byte [esi + 0x25], 1
jmp 0x470d36
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea eax, [ecx + 0x1f]
push eax
call fcn.00489595
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x470d90
push ebx
push dword [esi + 0x28]
add eax, 0xf
push 1
push eax
mov dword [esi + 0x1c], eax
call fcn.0048a645
mov ecx, dword [esi + 0x28]
add esp, 0x10
cmp eax, ecx
jge 0x470d78
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, eax
push 0
push ecx
call fcn.00484500
add esp, 0xc
inc ebp
cmp bp, 0x1f
jl 0x470ba2
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