Function at 0x47e4a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
and dword [esp + 4], 0
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x47e4c0
push 0xffffffffffffff9a
pop eax
jmp 0x47e6f2
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0xc]
push 0
push eax
push dword [esi]
call fcn.00489808
add esp, 0xc
or edi, 0xffffffff
test eax, eax
jne 0x47e4eb
mov ebx, dword [esi]
lea eax, [esp + 0x14]
push eax
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e4f1
mov dword [esp + 0x10], edi
jmp 0x47e503
cmp dword [esp + 0x14], 0x2014b50
je 0x47e503
mov dword [esp + 0x10], 0xffffff99
mov ebx, dword [esi]
lea eax, [esp + 0x18]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e518
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e52d
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x20]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e542
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x24]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e557
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x28]
push eax
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e56c
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x28]
mov eax, ecx
shr eax, 0x10
mov edx, eax
and edx, 0x1f
mov ebx, dword [esi]
mov dword [esp + 0x5c], edx
mov edx, eax
shr eax, 9
and eax, 0x7f
add eax, 0x7bc
mov dword [esp + 0x64], eax
mov eax, ecx
shr eax, 0xb
and eax, 0x1f
mov dword [esp + 0x58], eax
mov eax, ecx
shr eax, 5
shr edx, 5
and eax, 0x3f
and edx, 0xf
mov dword [esp + 0x54], eax
and ecx, 0x1f
lea eax, [esp + 0x2c]
dec edx
add ecx, ecx
push eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x54], ecx
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e5d0
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x30]
push eax
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e5e5
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x34]
push eax
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e5fa
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x38]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e60f
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x3c]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e624
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x40]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e639
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x44]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e64e
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x48]
push eax
call fcn.0047e03f
pop ecx
test eax, eax
je 0x47e663
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x4c]
push eax
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e678
mov dword [esp + 0x10], edi
mov ebx, dword [esi]
lea eax, [esp + 0x14]
push eax
call fcn.0047e0b7
pop ecx
test eax, eax
je 0x47e68d
mov dword [esp + 0x10], edi
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jne 0x47e6ee
mov edx, dword [ebp + 0x10]
cmp edx, ebx
je 0x47e6d1
mov eax, dword [esp + 0x38]
cmp eax, dword [ebp + 0x14]
jae 0x47e6ac
mov byte [eax + edx], bl
mov ecx, eax
jmp 0x47e6af
mov ecx, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x47e6d1
cmp dword [ebp + 0x14], ebx
jbe 0x47e6d1
push dword [esi]
push 1
push ecx
push edx
call fcn.00489500
add esp, 0x10
cmp eax, 1
je 0x47e6d1
mov dword [esp + 0x10], edi
jmp 0x47e6ee
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x47e6e1
push 0x14
pop ecx
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x47e6ee
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret