Function at 0x40be90
Capabilities:
Get file size
Read file via mapping

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 0x4ec137
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x53e01c]
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 - 0xa4], edx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [ebp - 0x9c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bf19
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
jne 0x40bf39
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
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.0045b5b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test eax, eax
jne 0x40bf48
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40bf1b
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
test edi, edi
je 0x40bf19
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [ebp - 0xa0], eax
call esi
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40bf19
movaps xmm0, xmmword [0x531af0]
lea ecx, [ebp - 0x70]
push dword [ebp - 0x9c]
mov edx, eax
mov dword [ebp - 0x70], 0x67452301
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0
call fcn.0040ba80
push 0x26
mov edx, str.B024060C_738F_43AA_9F81_F500ED433213
lea ecx, [ebp - 0x70]
call fcn.0040ba80
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
add esp, 8
add ecx, eax
sub edx, eax
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x40c03e
push edx
push 0
push ecx
call fcn.004beec0
add esp, 0xc
lea edx, [ebp - 0x56]
mov esi, 0x10
nop word [eax + eax]
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [edx - 6], ecx
sub esi, 1
jne 0x40c000
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.0040b400
push 0x38
push esi
lea eax, [ebp - 0x58]
push eax
jmp 0x40c045
lea eax, [edx - 8]
push eax
push 0
push ecx
call fcn.004beec0
add esp, 0xc
lea edx, [ebp - 0x56]
mov esi, 0xe
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [edx - 6], ecx
sub esi, 1
jne 0x40c055
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
call fcn.0040b400
mov esi, 4
lea edx, [ebp - 0x6e]
nop
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [edx - 6], ecx
sub esi, 1
jne 0x40c0a0
movups xmm0, xmmword [ebp - 0x70]
push 0x58
lea eax, [ebp - 0x70]
push esi
push eax
movups xmmword [ebp - 0x98], xmm0
call fcn.004beec0
add esp, 0xc
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x88]
push esi
mov dword [ebp - 0x88], esi
push 0x20
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x9c], 1
call fcn.00417390
xor edi, edi
xor eax, eax
mov dword [ebp - 0x9c], eax
mov al, byte [ebp + eax - 0x98]
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
movzx esi, al
lea edi, [edi + 2]
cmovae ecx, dword [ebp - 0x88]
mov eax, esi
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ecx + edi - 2], al
cmp dword [ebp - 0x74], 0x10
cmovae edx, dword [ebp - 0x88]
and esi, 0xf
movzx eax, byte [esi + str.0123456789abcdef]
mov byte [edx + edi - 1], al
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
cmp eax, 0x10
jl 0x40c120
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push eax
call fcn.00417500
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x40c1c4
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c1d8
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, 1
jmp 0x40bf1b
call fcn.004c1e0f
int3