Function at 0x4d5280
Capabilities:
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f61b3
push eax
mov dword fs:[0], esp
sub esp, 0x354
xor eax, eax
lea edx, [esp + 0x128]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 5
mov esi, str.DisplayDiagnoseData
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x14
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x70]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebx, ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ecx
push 0xffff
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
jne 0x4d530d
xor al, al
jmp 0x4d57d0
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, ebx
mov dword [ebp], edx
jne 0x4d5329
xor al, al
jmp 0x4d57d0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x29c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [ebp + 0xc]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004d58a0
push 0xffffffffffffffff
mov ecx, ebp
call fcn.004d58e0
push ebx
mov ecx, ebp
call fcn.004d58e0
lea ecx, [esp + 0x50]
push ecx
call fcn.004d6c40
add esp, 4
mov dword [esp + 0x36c], ebx
call fcn.004d6c30
fstp qword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x78]
push str._.2f
push ecx
call fcn.004de8d6
mov dl, byte [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x24], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x4f73d0]
lea edx, [esp + 0x60]
push eax
push ebx
push edx
call fcn.00413e90
mov ecx, ebp
call fcn.004d5940
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x70]
push ecx
push eax
mov ecx, ebp
call fcn.004d5900
fld qword [esp + 0x24]
sub esp, 8
lea ecx, [esp + 0xdc]
fstp qword [esp]
push str._.2f
push ecx
call fcn.004de8d6
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0xd4]
push ecx
push edx
mov ecx, ebp
call fcn.004d5900
mov ecx, ebp
call fcn.004d5800
mov ecx, ebp
call fcn.004d5890
lea esi, [eax + 4]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
lea ebx, [ecx + esi + 1]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + ebx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + edx + 1]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea edx, [ecx + ebp + 2]
mov byte [esp + 0x28], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
lea ecx, [ecx + edx + 1]
mov dword [esp + 0x20], ecx
call fcn.004cc340
push ebx
call fcn.004cc540
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x19c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x19c]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x4d551b
mov al, 0x5c
cmp byte [esp + ecx + 0x19c], al
jne 0x4d5513
inc edx
cmp edx, 4
je 0x4d551b
dec ecx
jns 0x4d5509
mov byte [esp + ecx + 0x19d], 0
lea ecx, [esp + 0x19c]
push ecx
call fcn.004cc140
mov edx, dword [esp + 0x14]
push edx
call fcn.004cc740
add esp, 8
mov eax, 0x50f8e0
mov dl, byte [ebp]
mov bl, byte [eax]
mov cl, dl
cmp dl, bl
jne 0x4d556b
test cl, cl
je 0x4d5567
mov dl, byte [ebp + 1]
mov bl, byte [eax + 1]
mov cl, dl
cmp dl, bl
jne 0x4d556b
add ebp, 2
add eax, 2
test cl, cl
jne 0x4d5542
xor eax, eax
jmp 0x4d5570
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d5578
push 1
jmp 0x4d557a
push 0
call fcn.004cc800
mov eax, dword [esp + 0x20]
add esp, 4
mov esi, 0x50f8e0
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4d55b3
test cl, cl
je 0x4d55af
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4d55b3
add eax, 2
add esi, 2
test cl, cl
jne 0x4d558b
xor eax, eax
jmp 0x4d55b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d55c0
push 1
jmp 0x4d55c2
push 0
call fcn.004cc810
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call fcn.004ccc50
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004ccc60
add esp, 8
lea edx, [esp + 0x23]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x50f8e4
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x52]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
push str.CurrentSelected
mov byte [esp + 0x398], 1
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x63]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
push str.Language
mov byte [esp + 0x3a8], 2
call fcn.00413bf0
lea eax, [esp + 0x74]
mov byte [esp + 0x3a0], 3
push eax
call fcn.004cc200
sub esp, 0xc
mov byte [esp + 0x3b0], 4
mov ecx, esp
mov dword [esp + 0x54], esp
push str.display.ini
push eax
push ecx
call fcn.004777f0
add esp, 0xc
lea edx, [esp + 0x74]
mov byte [esp + 0x3b0], 5
push edx
call fcn.004d95e0
add esp, 0x48
mov eax, dword [esp + 0x44]
xor edi, edi
mov bl, 7
cmp eax, edi
mov byte [esp + 0x36c], bl
je 0x4d56b2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d56a9
cmp al, 0xff
je 0x4d56a9
dec al
mov byte [ecx], al
jmp 0x4d56b2
push ecx
call fcn.004de1a0
add esp, 4
push edi
push 0x3a8
sub esp, 0x10
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
push str.CodePage
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
call fcn.004cb9e0
push ecx
lea edx, [esp + 0x43]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
push str.Language
mov byte [esp + 0x39c], 8
call fcn.00413bf0
lea eax, [esp + 0x88]
mov byte [esp + 0x394], 9
push eax
call fcn.004cc200
sub esp, 0xc
mov byte [esp + 0x3a4], 0xa
mov ecx, esp
mov dword [esp + 0x54], esp
push str.display.ini
push eax
push ecx
call fcn.004777f0
add esp, 0xc
mov byte [esp + 0x3a4], 0xb
call fcn.004d9c20
mov esi, eax
mov eax, dword [esp + 0x9c]
add esp, 0x38
cmp eax, edi
mov byte [esp + 0x36c], bl
je 0x4d5771
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d5768
cmp al, 0xff
je 0x4d5768
dec al
mov byte [ecx], al
jmp 0x4d5771
push ecx
call fcn.004de1a0
add esp, 4
push esi
call fcn.004ccaf0
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, edi
je 0x4d579e
mov al, byte [ecx - 1]
test al, al
je 0x4d5794
cmp al, 0xff
je 0x4d5794
dec al
mov byte [ecx - 1], al
jmp 0x4d579e
dec ecx
push ecx
call fcn.004de1a0
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], edi
cmp ecx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
je 0x4d57ce
mov al, byte [ecx - 1]
test al, al
je 0x4d57c4
cmp al, 0xff
je 0x4d57c4
dec al
mov byte [ecx - 1], al
jmp 0x4d57ce
dec ecx
push ecx
call fcn.004de1a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x360
ret