Function at 0x4458e4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edx, dword [ebp + 0x14]
mov word [ebp - 8], 0xffff
mov bx, word [edx]
mov ax, bx
dec ax
cmp ax, 0x1d
ja 0x445b94
sub esp, 4
lea ecx, str.INFSERV_XMS_INFO
push ecx
push 0
push 2
call sub.KERNEL32.dll_OpenFileMappingA
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x445b94
sub esp, 4
push 0x100
push 0
push 0
push 2
push dword [ebp - 0xc]
call sub.KERNEL32.dll_MapViewOfFile
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44596b
sub esp, 4
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x445b94
movsx esi, bx
shl esi, 3
add esi, dword [ebp - 0x10]
mov edi, esi
mov dword [ebp - 0x14], esi
cmp dword [edi - 8], 0
jne 0x44599a
sub esp, 4
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x445b94
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov edi, dword [edi]
add edi, dword [esi]
cmp edi, dword [eax - 4]
jle 0x4459c7
sub esp, 4
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x445b94
mov ecx, dword [str.INFSERV_XMS_H00]
xor edx, edx
mov dword [0x3a5d7c0], ecx
mov ecx, dword [0x4aef90]
mov dword [0x3a5d7c4], ecx
mov ecx, dword [0x4aef94]
mov dword [0x3a5d7c8], ecx
mov ecx, dword [0x4aef98]
lea eax, [0x3a5d7cd]
mov dword [0x3a5d7cc], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 2
lea edi, [0x4b7760]
mov word [ebp - 0x40], bx
sub esp, 4
lea ecx, [ebp - 0x48]
lea edx, [0x4aef84]
push edi
lea esi, [ebp - 0x34]
push ecx
push edx
push 0x7f84ff00
push esi
call fcn.0046e6d0
add esp, 0x18
lea ebx, [0x3a5d7c0]
mov byte [0x3a5d7cf], 0
sub esp, 4
push ebx
push 0
push 2
call sub.KERNEL32.dll_OpenFileMappingA
add esp, 4
mov edi, eax
test eax, eax
jne 0x445a7a
sub esp, 4
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x445b94
mov esi, dword [ebp - 0x14]
sub esp, 4
push dword [esi - 4]
push 0
push 0
push 2
push edi
call sub.KERNEL32.dll_MapViewOfFile
add esp, 4
test eax, eax
jne 0x445ac0
sub esp, 4
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push edi
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x445b94
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebx]
mov esi, ebx
test ebx, ebx
jle 0x445b6c
mov edx, dword [edx]
add edx, eax
mov ecx, 0
cmp ebx, 5
jle 0x445b56
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx]
and ebx, 0xff
mov byte [edx], bl
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx + 1]
and ebx, 0xff
mov byte [edx + 1], bl
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx + 2]
and ebx, 0xff
mov byte [edx + 2], bl
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx + 3]
and ebx, 0xff
mov byte [edx + 3], bl
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx + 4]
and ebx, 0xff
mov byte [edx + 4], bl
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx + 5]
and ebx, 0xff
mov byte [edx + 5], bl
add edx, 6
add ecx, 6
sub esi, 6
cmp esi, 5
jg 0x445ae0
test esi, esi
jle 0x445b6c
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx + ecx]
and ebx, 0xff
mov byte [edx], bl
inc edx
inc ecx
dec esi
test esi, esi
jg 0x445b56
sub esp, 4
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push edi
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
mov word [ebp - 8], 0
mov ax, word [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14