Function at 0x44562f
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 0x4458d7
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 0x4458d7
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 0x4456b6
sub esp, 4
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x4458d7
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 0x4456e5
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 0x4458d7
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 0x445712
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 0x4458d7
mov ecx, dword [str.INFSERV_XMS_H00]
xor edx, edx
mov dword [0x3a5d7d4], ecx
mov ecx, dword [0x4aef90]
mov dword [0x3a5d7d8], ecx
mov ecx, dword [0x4aef94]
mov dword [0x3a5d7dc], ecx
mov ecx, dword [0x4aef98]
lea eax, [0x3a5d7e1]
mov dword [0x3a5d7e0], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 2
lea edi, [0x4b774c]
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, [0x3a5d7d4]
mov byte [0x3a5d7e3], 0
sub esp, 4
push ebx
push 0
push 2
call sub.KERNEL32.dll_OpenFileMappingA
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4457c6
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 0x4458d7
mov esi, dword [ebp - 0x14]
sub esp, 4
push dword [esi - 4]
push 0
push 0
push 2
push dword [ebp - 4]
call sub.KERNEL32.dll_MapViewOfFile
add esp, 4
test eax, eax
jne 0x445810
sub esp, 4
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
jmp 0x4458d7
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebx]
mov esi, ebx
test ebx, ebx
jle 0x4458ad
mov edx, dword [edx]
add edx, eax
mov ecx, 0
cmp ebx, 5
jle 0x445897
movzx ebx, byte [edx]
mov edi, dword [ebp + 8]
and ebx, 0xff
mov byte [edi + ecx], bl
movzx ebx, byte [edx + 1]
and ebx, 0xff
mov byte [edi + ecx + 1], bl
movzx ebx, byte [edx + 2]
and ebx, 0xff
mov byte [edi + ecx + 2], bl
movzx ebx, byte [edx + 3]
and ebx, 0xff
mov byte [edi + ecx + 3], bl
movzx ebx, byte [edx + 4]
and ebx, 0xff
mov byte [edi + ecx + 4], bl
movzx ebx, byte [edx + 5]
and ebx, 0xff
add edx, 6
mov byte [edi + ecx + 5], bl
add ecx, 6
sub esi, 6
cmp esi, 5
jg 0x445830
test esi, esi
jle 0x4458ad
movzx ebx, byte [edx]
mov edi, dword [ebp + 8]
and ebx, 0xff
inc edx
mov byte [edi + ecx], bl
inc ecx
dec esi
test esi, esi
jg 0x445897
sub esp, 4
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0x10]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 4]
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