Function at 0x46fee0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fac6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d0
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], edx
mov edi, ecx
mov eax, dword [ebx + 0xc]
push 0x5a8538
push dword [ebx + 8]
mov dword [ebp - 0x2d4], eax
call fcn.0052e763
mov esi, eax
add esp, 8
mov dword [ebp - 0x2c8], esi
test esi, esi
jne 0x46ff8b
mov esi, dword [ebp - 0x2d0]
test esi, esi
je 0x46ff84
lea ecx, [ebp - 0x2b8]
call fcn.00471470
mov dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.00407b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.00404780
xor al, al
jmp 0x470252
mov eax, dword [ebp - 0x2d4]
test eax, eax
je 0x46ff9f
mov eax, dword [eax]
mov dword [ebp - 0x2d8], eax
jmp 0x46ffa9
mov dword [ebp - 0x2d8], 0
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [edi + 0x10], 0
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
jb 0x46ffca
mov eax, dword [edi]
jmp 0x46ffcc
mov eax, edi
xor ecx, ecx
push 2
push ecx
push esi
mov word [eax], cx
call fcn.0052f105
add esp, 0xc
push esi
call fcn.0052fa00
add esp, 4
mov esi, eax
mov dword [ebp - 0x2dc], esi
push 0
push 0
push dword [ebp - 0x2c8]
call fcn.0052f105
add esp, 0xc
xor eax, eax
test esi, esi
je 0x4701d2
push esi
call fcn.00512116
add esp, 4
mov dword [ebp - 0x2bc], eax
push dword [ebp - 0x2c8]
push 1
push esi
push eax
call fcn.0052ea9a
mov edx, dword [ebp - 0x2bc]
mov eax, 0x64
cmp esi, eax
mov ecx, esi
cmovg ecx, eax
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.00470ea0
add eax, eax
add esp, 0x14
cmp eax, 0x192
jae 0x470204
xor ecx, ecx
mov word [ebp + eax - 0x2a0], cx
mov eax, 0xfde9
push ecx
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x2a0]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x2b8]
call fcn.00470fc0
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2a8], 0
je 0x4700cb
cmp dword [ebp - 0x2a4], 8
lea ecx, [ebp - 0x2b8]
push 5
cmovae ecx, dword [ebp - 0x2b8]
mov edx, 0x5a8540
call fcn.00474980
xor edx, edx
add esp, 4
test eax, eax
mov ecx, 0xfde9
cmovne ecx, edx
mov dword [ebp - 0x2cc], ecx
jmp 0x4700d0
mov ecx, 0xfde9
push 0
push 0
push esi
push dword [ebp - 0x2bc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
mov dword [ebp - 0x2c0], ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, 2
add esi, ecx
xor ecx, ecx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512116
mov dword [ebp - 0x2c4], eax
add esp, 4
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
mov esi, dword [edi + 0x10]
cmp esi, ecx
ja 0x470163
cmp dword [edi + 0x14], ecx
je 0x470163
push 1
push ecx
mov ecx, edi
call fcn.00404cb0
test al, al
je 0x470163
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x47015b
mov eax, dword [edi]
jmp 0x47015d
mov eax, edi
xor ecx, ecx
mov word [eax + esi*2], cx
push dword [ebp - 0x2c0]
mov esi, dword [ebp - 0x2dc]
push dword [ebp - 0x2c4]
mov eax, dword [ebp - 0x2cc]
push esi
push dword [ebp - 0x2bc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x2c0]
mov ecx, edi
push dword [ebp - 0x2c4]
call fcn.00404d30
push dword [ebp - 0x2c4]
call fcn.0051211f
add esp, 4
push dword [ebp - 0x2bc]
call fcn.0051211f
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.00404780
mov eax, dword [ebp - 0x2c0]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x108]
push 0x5a854c
push eax
call fcn.00415840
mov esi, dword [ebp - 0x2d0]
add esp, 0x14
test esi, esi
je 0x470230
cmp word [ebp - 0x108], 0
jne 0x470209
xor ecx, ecx
jmp 0x470221
call fcn.00512704
lea ecx, [ebp - 0x108]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470212
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00404d30
push dword [ebp - 0x2c8]
call fcn.0052e84e
mov eax, dword [ebp - 0x2d4]
add esp, 4
test eax, eax
je 0x470250
mov ecx, dword [ebp - 0x2d8]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret