Function at 0x472cf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4bc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x38]
push ebp
push 0x490
push 1
push eax
mov dword [esp + 0x44], ebp
call fcn.0048a775
add esp, 0x10
cmp eax, 0x490
je 0x472d26
push str.Error:_This_file_is_either_not_a_module__or_is_not_supported.
jmp 0x473190
mov bh, byte [esp + 0x57]
test bh, bh
je 0x47318b
cmp byte [esp + 0x55], 2
jne 0x47318b
mov ecx, 0x20
mov dword [0x551eac], 4
lea esi, [esp + 0x448]
mov edi, 0x551d96
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov edx, 0x80
movsx eax, cx
cmp byte [eax + 0x551d96], 0x63
jae 0x472d73
inc ecx
cmp cx, dx
jl 0x472d61
xor eax, eax
test cx, cx
sete al
add ax, cx
movzx ecx, ax
mov word [0x551e9e], ax
mov eax, 0xff
cmp cx, ax
jae 0x472daa
mov eax, 0x100
sub eax, ecx
push eax
lea eax, [ecx + 0x551d96]
push 0
push eax
call fcn.00484630
add esp, 0xc
mov eax, dword [esp + 0x48]
mov ecx, 0xa
mov dword [0x5511f3], eax
mov al, byte [esp + 0x58]
mov bl, al
movups xmm0, xmmword [esp + 0x38]
movups xmmword [0x5511e3], xmm0
cmp bh, 0x15
jae 0x472ddb
xor edx, edx
movzx eax, bl
div ecx
shl al, 4
add al, dl
test al, al
movzx ecx, al
mov edx, 0x60
mov dword [esp + 0x18], 0xf19328c
cmove ecx, edx
mov dword [esp + 0x1c], 0x406070a
movzx edx, cl
mov eax, edx
mov dword [esp + 0x20], 0x2020303
shr eax, 4
and edx, 0xf
mov dword [esp + 0x24], 0x1010202
shr bl, 4
mov dword [esp + 0x30], 0
movzx ecx, byte [esp + eax + 0x18]
mov eax, 0x32
imul ecx, edx
shr ecx, 4
sub eax, ecx
movzx eax, ax
mov cx, ax
add eax, eax
shr cx, 1
add cx, ax
cmp byte [esp + 0x59], 0
movzx eax, bl
mov word [0x551ea2], cx
mov word [0x551ea4], ax
jbe 0x47303c
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 1
push 0xa010
mov esi, 0x40
call fcn.00489078
add esp, 8
mov dword [ebx*4 + 0x551ee0], eax
test eax, eax
je 0x473184
push ebp
push 1
push 0x400
push 0x53d740
mov word [ebx*2 + 0x550fe0], si
call fcn.0048a775
add esp, 0x10
cmp eax, 1
jne 0x473135
xor eax, eax
mov dword [esp + 0x2c], 0x40
mov esi, 0x53d740
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov edi, eax
mov ebp, 4
nop word [eax + eax]
mov ecx, dword [ebx*4 + 0x551ee0]
mov bl, byte [esi]
add ecx, edi
cmp bl, 0xfe
jne 0x472ee5
mov byte [ecx], 0x61
jmp 0x472f0a
cmp bl, 0x60
jae 0x472f07
mov al, bl
and bl, 0xf
shr al, 4
mov dl, al
add al, al
add dl, al
shl dl, 2
add dl, 0x19
add dl, bl
mov byte [ecx], dl
cmp dl, 0x60
jbe 0x472f0a
mov byte [ecx], 0
movzx eax, byte [esi + 1]
shr al, 3
mov byte [ecx + 1], al
mov dl, byte [esi + 2]
movzx eax, byte [esi + 1]
shr dl, 1
and al, 7
and dl, 0x78
add dl, al
cmp dl, 0x40
ja 0x472f2f
add dl, 0x10
mov byte [ecx + 2], dl
mov bl, byte [esi + 3]
mov byte [ecx + 4], bl
mov al, byte [esi + 2]
and al, 0xf
cmp al, 1
jne 0x472f61
mov byte [ecx + 3], 0xf
cmp byte [esp + 0x57], 0x15
jae 0x472f5c
movzx eax, bl
xor edx, edx
mov ebx, 0xa
div ebx
mov ebx, eax
shl bl, 4
add bl, dl
shr bl, 4
jmp 0x472f9d
cmp al, 3
jne 0x472f6d
mov word [ecx + 3], 0xd
jmp 0x472fa0
cmp al, 2
je 0x472f7f
cmp al, 4
jb 0x472f79
cmp al, 0xc
jbe 0x472f7f
mov byte [ecx + 4], 0
jmp 0x472fa0
movzx eax, al
mov al, byte [eax + 0x4dd870]
mov byte [ecx + 3], al
cmp al, 0xa
jne 0x472fa0
mov al, bl
and al, 0xf
je 0x472f9a
mov byte [ecx + 4], al
jmp 0x472fa0
and bl, 0xf0
mov byte [ecx + 4], bl
mov ebx, dword [esp + 0x14]
add edi, 5
add esi, 4
sub ebp, 1
jne 0x472ed0
mov eax, dword [esp + 0x28]
add eax, 0xa0
sub dword [esp + 0x2c], 1
mov dword [esp + 0x28], eax
jne 0x472ec0
mov ebp, dword [esp + 0x30]
movzx eax, bp
mov edx, dword [eax*4 + 0x551ee0]
test edx, edx
je 0x472ffc
movsx eax, word [eax*2 + 0x550fe0]
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 5
test ecx, ecx
je 0x472ffc
cmp byte [eax + edx], 0
jne 0x47301f
inc eax
cmp eax, ecx
jb 0x472ff1
mov esi, dword [esp + 0x14]
mov eax, dword [esi*4 + 0x551ee0]
test eax, eax
je 0x47301f
push eax
call fcn.00489083
add esp, 4
mov dword [esi*4 + 0x551ee0], 0
movzx eax, byte [esp + 0x59]
inc ebp
movsx ebx, bp
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
cmp ebx, eax
jl 0x472e5f
xor edi, edi
nop
movsx esi, di
imul ecx, esi, 0x17
mov ebx, esi
shl ebx, 5
movq xmm0, qword [esp + ebx + 0x68]
add ecx, 0x55120f
cmp word [esp + ebx + 0x78], 0
mov eax, dword [esp + ebx + 0x70]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
jbe 0x47315e
lea ecx, [edi + 1]
call fcn.004208e0
mov ecx, dword [esi*4 + 0x550bc0]
call fcn.004357a0
movzx eax, word [esp + ebx + 0x78]
mov esi, dword [esi*4 + 0x550bc4]
add eax, 0x1f
push eax
add esi, 0xdc
call fcn.004896c5
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x47317d
add eax, 0xf
mov dword [esi + 0x1c], eax
movzx eax, word [esp + ebx + 0x78]
mov dword [esi + 0x28], eax
mov al, byte [esp + ebx + 0x7e]
mov byte [esi + 0x24], al
movzx eax, word [esp + ebx + 0x7a]
mov dword [esi + 0x2c], eax
movzx eax, word [esp + ebx + 0x7a]
movzx ecx, word [esp + ebx + 0x7c]
sub ecx, eax
mov dword [esi + 0x30], ecx
mov ecx, esi
movq xmm0, qword [esp + ebx + 0x68]
movq qword [esi], xmm0
mov eax, dword [esp + ebx + 0x70]
mov dword [esi + 8], eax
movzx eax, byte [0x551ec0]
movzx edx, word [esp + ebx + 0x80]
push eax
call fcn.00432870
mov edx, dword [esi + 0x2c]
add esp, 4
mov ecx, dword [esi + 0x28]
cmp edx, ecx
jge 0x47313c
movzx ebx, word [esp + ebx + 0x7c]
cmp ebx, edx
jle 0x47313c
mov eax, 0xffff
cmp bx, ax
je 0x47313c
mov eax, dword [esi + 0x30]
add eax, edx
cmp eax, ecx
jle 0x47312f
mov eax, ecx
sub eax, edx
mov dword [esi + 0x30], eax
or byte [esi + 0x25], 1
jmp 0x47314a
push str.General_I_O_error_during_loading_
jmp 0x473190
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
push ebp
push 1
push ecx
push dword [esi + 0x1c]
call fcn.0048a775
add esp, 0x10
cmp eax, 1
jne 0x473176
inc edi
cmp di, 0x1f
jl 0x473040
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4bc
ret
push str.General_I_O_error_during_loading__Possibly_corrupt_module_
jmp 0x473190
mov dword [esi + 0x1c], 0
push str.Not_enough_memory_
jmp 0x473190
push str.Error_loading_STM:_Incompatible_module_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4bc
ret