Function at 0x473f10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
movzx ebp, dx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x1c], ebx
mov esi, dword [ebp*4 + 0x550bc0]
mov dword [esp + 0x28], ebp
test esi, esi
je 0x473fd2
movzx ebp, word [esi + 0xd8]
mov eax, 0x10
cmp ebp, eax
cmova ebp, eax
add esi, 0xdc
mov eax, 0x80
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], esi
cmp dx, ax
jbe 0x473fdc
xor eax, eax
cmp ax, bp
jae 0x473f8d
add esi, 0x28
movzx edi, bp
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jle 0x473f82
push 1
push eax
push ebx
call fcn.00489d25
add esp, 0xc
add esi, 0xd8
sub edi, 1
jne 0x473f70
mov eax, dword [esp + 0x28]
mov eax, dword [eax*4 + 0x550bc0]
movzx eax, word [eax + 0xd8]
cmp ax, 0x10
jle 0x473fd2
movsx edi, ax
xor esi, esi
sub edi, 0x10
test edi, edi
jle 0x473fd2
xor eax, eax
mov eax, dword [eax*4 + 0x53db40]
test eax, eax
je 0x473fca
push 1
push eax
push ebx
call fcn.00489d25
add esp, 0xc
inc esi
movzx eax, si
cmp eax, edi
jl 0x473fb3
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
cmp ax, bp
jae 0x473f8d
nop dword [eax]
mov edi, dword [esi + 0x28]
test edi, edi
jg 0x474015
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x25], 0
jmp 0x4740eb
mov al, byte [esi + 0x25]
mov ecx, edi
mov dl, al
mov byte [esp + 0x13], al
shr dl, 4
and dl, 1
mov byte [esp + 0x24], dl
je 0x474037
sar dword [esi + 0x2c], 1
sar ecx, 1
sar dword [esi + 0x30], 1
mov dword [esi + 0x28], ecx
cmp ecx, 0x3fffffff
jle 0x47404b
mov dword [esi + 0x28], 0x3fffffff
mov ecx, 0x3fffffff
test dl, dl
lea eax, [ecx + ecx]
cmove eax, ecx
add eax, 0x1f
push eax
call fcn.004893b5
mov ecx, eax
add esp, 4
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x47406c
xor al, al
jmp 0x474071
mov al, 1
add ecx, 0xf
mov dword [esi + 0x1c], ecx
test al, al
je 0x47417c
test byte [esp + 0x13], 0x40
push ebx
je 0x474114
push 0x10
lea eax, [esp + 0x34]
push 1
push eax
call fcn.0048a465
mov eax, dword [esi + 0x28]
add esp, 0x10
mov edi, dword [esi + 0x1c]
inc eax
cdq
xor bl, bl
sub eax, edx
mov ebp, eax
sar ebp, 1
test ebp, ebp
jle 0x4740df
mov esi, dword [esp + 0x1c]
push esi
call fcn.00490245
movzx ecx, al
lea edi, [edi + 2]
mov eax, ecx
add esp, 4
and eax, 0xf
shr ecx, 4
add bl, byte [esp + eax + 0x2c]
mov byte [edi - 2], bl
add bl, byte [esp + ecx + 0x2c]
mov byte [edi - 1], bl
sub ebp, 1
jne 0x4740b1
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov al, byte [esi + 0x25]
test al, 0x20
je 0x4740f7
and al, 0xdf
mov byte [esi + 0x25], al
inc ecx
add esi, 0xd8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], esi
cmp cx, bp
jb 0x473ff0
jmp 0x473f8d
movzx ecx, byte [esi + 0x25]
mov ebp, dword [esi + 0x28]
shr ecx, 4
and ecx, 1
shl ebp, cl
push ebp
push 1
push dword [esi + 0x1c]
call fcn.0048a465
add esp, 0x10
cmp ebp, edi
jge 0x474143
push 1
sub edi, ebp
push edi
push ebx
call fcn.00489d25
add esp, 0xc
movzx eax, byte [esi + 0x25]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00435050
add esp, 4
test byte [esp + 0x13], 0x20
je 0x4740e3
sar dword [esi + 0x28], 1
mov ecx, esi
push dword [esp + 0x24]
mov edx, dword [esi + 0x28]
sar dword [esi + 0x2c], 1
sar dword [esi + 0x30], 1
call fcn.00436f20
add esp, 4
jmp 0x4740e3
push str.Not_enough_memory_
call dword [0x54e480]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret