Function at 0x4741a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor al, al
xor ebx, ebx
push esi
mov si, dx
mov byte [esp + 0xc], al
push edi
xor eax, eax
mov word [esp + 0x12], si
mov dword [esp + 0x14], ebx
mov edi, ecx
mov dword [esp + 0x1c], edi
cmp ax, si
jae 0x4743ff
push edi
push 1
lea eax, [esp + 0x28]
mov ebp, 0x102
push 4
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x474421
push edi
push eax
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x474421
xor eax, eax
push edi
mov word [esp + 0x29], ax
push 1
cmp word [esp + 0x38], bp
jne 0x474262
lea eax, [esp + 0x19]
push 1
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x474421
push edi
push eax
lea eax, [esp + 0x2f]
push 2
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x474421
movzx eax, byte [esp + 0x11]
inc ax
mov word [esp + 0x25], ax
mov eax, dword [esp + 0x20]
cmp eax, 8
jle 0x4742ac
add eax, 0xfffffff8
jmp 0x4742a0
lea eax, [esp + 0x2d]
push 2
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x474421
push edi
push eax
lea eax, [esp + 0x2f]
push 2
push eax
call fcn.0048a465
add esp, 0x10
cmp eax, 1
jne 0x474421
mov eax, dword [esp + 0x20]
cmp eax, 9
jle 0x4742ac
add eax, 0xfffffff7
push 1
push eax
push edi
call fcn.00489d25
add esp, 0xc
push edi
call fcn.0048feb4
add esp, 4
test eax, eax
jne 0x474421
mov ax, word [esp + 0x25]
movzx ebp, bx
movzx edx, ax
mov word [ebp*2 + 0x550fe0], ax
mov eax, 0x100
cmp dx, ax
jle 0x4742e9
mov edx, eax
mov word [ebp*2 + 0x550fe0], ax
mov byte [esp + 0x10], 1
cmp word [esp + 0x27], 0
jbe 0x4743a5
mov ecx, ebp
call fcn.004206d0
test al, al
je 0x474409
movzx eax, word [esp + 0x27]
push edi
push eax
push 1
push 0x53db80
call fcn.0048a465
movzx ecx, word [esp + 0x37]
add esp, 0x10
cmp eax, ecx
jne 0x474421
push dword [0x551eac]
movzx eax, word [ebp*2 + 0x550fe0]
mov ecx, dword [ebp*4 + 0x551ee0]
push eax
call fcn.00474440
mov edx, dword [ebp*4 + 0x551ee0]
add esp, 8
mov ecx, dword [0x551eac]
test edx, edx
je 0x4743a5
cmp ecx, 0x20
jge 0x4743a5
mov eax, 0x20
lea esi, [edx + ecx*4]
sub eax, ecx
add esi, ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x18], eax
movzx eax, word [ebp*2 + 0x550fe0]
movsx ebx, ax
test ebx, ebx
jle 0x47439c
mov edi, dword [esp + 0x18]
push edi
push 0
push esi
call fcn.00484320
add esp, 0xc
add esi, 0xa0
sub ebx, 1
jne 0x474381
mov edi, dword [esp + 0x1c]
mov si, word [esp + 0x12]
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.00420770
test al, al
je 0x4743dc
mov eax, dword [ebp*4 + 0x551ee0]
test eax, eax
je 0x4743cf
push eax
call fcn.00488d73
add esp, 4
mov dword [ebp*4 + 0x551ee0], 0
mov eax, 0x40
mov word [ebp*2 + 0x550fe0], ax
inc ebx
mov dword [esp + 0x14], ebx
cmp bx, si
jb 0x4741cc
cmp byte [esp + 0x10], 0
je 0x4743ff
push str.This_module_contains_pattern_s__with_a_length_above_256__They_will_be_truncated.
call dword [0x54e480]
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
push str.Not_enough_memory_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Error_loading_XM:_This_file_is_corrupt_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret