Function at 0x46acb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x69301c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x58], 0
je 0x46ad43
push 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.00403910
mov dword [ebp - 0x14], 1
mov ecx, 0x660a08
mov eax, dword [eax]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46ad36
test dx, dx
je 0x46ad32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46ad36
add eax, 4
add ecx, 4
test dx, dx
jne 0x46ad10
xor eax, eax
jmp 0x46ad3b
sbb eax, eax
or eax, 1
mov byte [ebp - 0xd], 1
test eax, eax
je 0x46ad47
mov byte [ebp - 0xd], 0
or edi, 0xffffffff
test byte [ebp - 0x14], 1
je 0x46ad6a
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ad6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x46adc1
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00404800
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x1c]
mov ecx, dword [ebx + 0x58]
push eax
call fcn.0047e5a0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004044d0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46adc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
lea ecx, [ebp + 8]
call fcn.00403d40
cmp dword [ebx + 0x24], 0
je 0x46aefd
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004037f0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004037f0
mov byte [ebp - 4], 0
add esp, 0x18
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ae1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x14]
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ae71
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x14]
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ae71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
xor edi, edi
add edx, 0xfffffff0
or esi, esi
jmp 0x46afba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebx]
cmp dword [ebx + 8], edi
jge 0x46aeb3
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
test eax, eax
je 0x46aea1
push eax
call fcn.005faa7c
add esp, 4
push edi
call fcn.005fa61d
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x46aec6
mov dword [ebx + 8], edi
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46aedd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
xor edi, edi
add edx, 0xfffffff0
or esi, 0xffffffff
jmp 0x46afba
mov eax, dword [ebp - 0x18]
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov edi, 1
add edx, 0xfffffff0
or esi, 0xffffffff
jmp 0x46afba
cmp dword [ebx + 0x20], 0
je 0x46b089
lea eax, [ebp + 8]
push eax
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004037f0
add esp, 0xc
mov byte [ebp - 4], 3
call fcn.004a6e1d
mov ecx, eax
test ecx, ecx
je 0x46b0c3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
xor edi, edi
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x46af90
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x46af5a
test edi, edi
js 0x46af5a
cmp edi, eax
jge 0x46af5a
mov eax, dword [ecx + edi*4]
jmp 0x46af63
mov dword [ebx + 4], 7
xor eax, eax
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.0040a560
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x46b0c3
push esi
push dword [ebp - 0x1c]
call fcn.005fadf3
add esp, 8
test eax, eax
je 0x46afd7
mov eax, dword [ebx + 0xc]
inc edi
cmp edi, eax
jl 0x46af46
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46afb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b08e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46b08e
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x46afec
test edi, edi
js 0x46afec
cmp edi, dword [ebx + 0xc]
jge 0x46afec
mov ecx, dword [ecx + edi*4]
jmp 0x46aff5
mov dword [ebx + 4], 7
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 8]
cmp edx, ecx
jl 0x46b009
mov ecx, dword [eax]
jmp 0x46b047
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [eax]
test eax, eax
je 0x46b029
push eax
call fcn.005faa7c
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call fcn.005fa61d
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x46af90
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov dword [ebp - 0x2c], vtable.XOutStreamMem.0
push edx
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
call fcn.0040ea90
mov dword [ebp - 0x2c], vtable.XOutStreamMem.0
test eax, eax
je 0x46af90
mov edi, 1
jmp 0x46af92
xor edi, edi
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x46b0ad
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00405000
int3