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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c597d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 0
mov ecx, esi
cmp dword [esi + 0x14], 7
jbe 0x463569
mov ecx, dword [esi]
mov dword [esi + 0x10], 0
xor edx, edx
mov word [ecx], dx
mov dword [esi + 0x18], 0xa
cmp dword [eax + 0x14], 7
jbe 0x463584
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x80], 0x4d81f4
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x4635bf
mov dword [ebp - 0x5c], 1
jmp 0x4638ef
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 2
push ecx
push 0x1000
lea ecx, [ebp - 0x70]
call fcn.004340d0
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x60]
push 0
push eax
push 0x1000
push edi
push dword [ebp - 0x64]
mov dword [ebp - 0x5c], 0x1000
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46361c
mov dword [ebp - 0x5c], 2
jmp 0x46384a
mov edx, dword [ebp - 0x60]
mov ecx, edi
call fcn.00464d50
mov dword [esi + 0x18], eax
cmp eax, 0xa
jne 0x46363a
mov dword [ebp - 0x5c], 3
jmp 0x46384a
cmp eax, 2
je 0x463650
cmp eax, 3
je 0x463650
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xffffffff
je 0x4636e4
mov esi, dword [ebp - 0x64]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
jne 0x46367a
mov dword [ebp - 0x5c], eax
jmp 0x46384a
mov edx, dword [ebp - 0x6c]
mov ecx, edx
sub ecx, edi
cmp esi, ecx
jae 0x46368a
lea eax, [edi + esi]
jmp 0x4636ba
jbe 0x4636bd
mov eax, dword [ebp - 0x68]
sub eax, edi
cmp esi, eax
jbe 0x4636a4
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.004340d0
mov edi, dword [ebp - 0x70]
jmp 0x4636bd
sub esi, ecx
push esi
push 0
push edx
call fcn.004883f0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
push 0
lea eax, [ebp - 0x60]
push eax
push esi
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4636de
mov dword [ebp - 0x5c], 2
jmp 0x46384a
mov esi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4637f1
nop dword [eax]
mov edx, edi
cmp ecx, 0xffffffff
jne 0x463777
push dword [esi + 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00464e80
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x46376e
mov ecx, eax
call fcn.0040bf40
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
jmp 0x4637c3
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004338b0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4637bc
mov ecx, eax
call fcn.0040bf40
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040bf40
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x46387b
mov eax, dword [eax]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call dword [0x4c83a0]
mov ecx, dword [ebp + 0x30]
call esi
test al, al
jne 0x463887
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x463836
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46382c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46395e
push ecx
push edx
call fcn.00486428
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
test edi, edi
je 0x4638ec
mov ecx, dword [ebp - 0x68]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4638cd
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46395e
jmp 0x4638cd
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
call fcn.00408850
mov esi, dword [ebp - 0x5c]
push esi
push 0
push edi
call fcn.004883f0
add esp, 0xc
lea eax, [ebp - 0x60]
push 0
push eax
push esi
push edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4638c1
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
test eax, eax
jne 0x463720
jmp 0x4637f1
mov dword [ebp - 0x5c], 2
jmp 0x4637f8
push ecx
push edi
call fcn.00486428
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0
mov dword [ebp - 0x80], 0x4d81f4
test eax, eax
je 0x46390c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x30]
test edi, edi
je 0x46393e
mov esi, dword [edi]
lea eax, [ebp + 0xc]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx eax, al
push eax
call dword [0x4c83a0]
mov ecx, edi
call esi
mov dword [ebp + 0x30], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
ret 0x30
call fcn.0048b78f
int3