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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9269
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x42c], ebx
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
call fcn.00463d90
lea edx, [ebp - 0x414]
mov dword [ebp - 0x414], ebx
lea ecx, [ebp - 0x440]
call fcn.00461200
push 0x18
mov dword [ebp - 4], 0
call fcn.00487959
mov edx, eax
add esp, 4
mov dword [ebp - 0x41c], edx
lea ecx, [edx + 8]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ecx], 0
mov dword [ecx], ecx
mov dword [ecx + 4], ecx
mov dword [ecx + 8], 0
mov dword [edx + 0x14], 0
mov eax, dword [ebx]
push 0
push 0
push 3
mov dword [ebx + 0x14], edx
mov dword [edx], eax
mov dword [edx + 4], ebx
mov eax, dword [ebx]
push 0
push 1
push SysReAllocString
mov dword [eax + 4], edx
push dword [ebx + 0xc]
inc dword [ebx + 8]
mov dword [ebx], edx
call dword [sym.imp.KERNEL30.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x41c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x464368
push 0
push esi
call dword [sym.imp.KERNEL30.dll_GetFileSize]
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0x45c]
push 0
inc eax
push eax
call fcn.0045ec10
push 0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x45c]
push eax
push dword [ebp - 0x418]
push edi
push esi
call dword [sym.imp.KERNEL30.dll_ReadFile]
test eax, eax
je 0x46435d
push 0x10000
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
call fcn.0040e1d0
push 0x10000
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
call fcn.0040e1d0
mov byte [ebp - 4], 4
cmp byte [edi], 0xef
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x414], eax
jne 0x46419f
cmp byte [edi + 1], 0xbb
jne 0x46419f
cmp byte [edi + 2], 0xbf
jne 0x46419f
add edi, 3
push 0x4bbdc8
push edi
call fcn.0048cf0c
mov edi, dword [ebp - 0x428]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x464349
mov esi, dword [ebp - 0x414]
push edi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00463c90
test eax, eax
jne 0x464274
test ebx, ebx
je 0x464212
mov eax, ebx
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4641f0
sub eax, edx
cmp eax, 0xfff6
jl 0x464212
push 0x4cfeb8
call fcn.0045f780
add esp, 4
jmp 0x46432a
push 0x10
call fcn.00487959
mov edi, eax
add esp, 4
mov dword [ebp - 0x444], edi
mov byte [ebp - 4], 5
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x464251
push ebx
push 0
mov ecx, edi
call fcn.00463910
mov byte [ebp - 4], 4
lea ecx, [esi + 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ecx]
mov dword [eax + 4], edi
inc dword [ecx + 8]
mov dword [ecx], edi
mov edi, dword [ebp - 0x428]
jmp 0x46432a
cmp dword [ebp - 0x414], 0
je 0x46431b
push 0x18
call fcn.00487959
mov esi, eax
lea ecx, [esi + 8]
mov dword [ebp - 0x448], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [ecx], ecx
mov dword [ecx + 4], ecx
mov dword [ecx + 8], 0
mov dword [esi + 0x14], 0
call fcn.00487954
lea ebx, [ebp - 0x410]
add esp, 8
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4642d0
sub ebx, ecx
lea eax, [ebx + 1]
push eax
call fcn.00487989
mov edi, eax
lea eax, [ebp - 0x410]
push ebx
push eax
push edi
call fcn.00489a20
mov ecx, dword [ebp - 0x42c]
add esp, 0x10
mov byte [edi + ebx], 0
mov dword [esi + 0x14], edi
mov edi, dword [ebp - 0x428]
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [ecx]
mov dword [eax + 4], esi
inc dword [ecx + 8]
mov dword [ecx], esi
jmp 0x46432a
push edi
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.00463a00
push 0x4bbdb0
push 0
call fcn.0048cf0c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4641c3
mov esi, dword [ebp - 0x41c]
push edi
call fcn.00491111
push dword [ebp - 0x438]
call fcn.00491111
add esp, 8
lea ecx, [ebp - 0x45c]
call fcn.0045ec60
test esi, esi
je 0x464378
cmp esi, 0xffffffff
je 0x464378
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
cmp byte [ebp - 0x43c], 0
je 0x46438c
mov ecx, dword [ebp - 0x440]
call fcn.00463e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 4