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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ef234
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 0x46680d
xor al, al
jmp 0x466dcd
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 0x466829
xor al, al
jmp 0x466dcd
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 + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
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.00466ea0
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00466ee0
push ebx
mov ecx, ebp
call fcn.00466ee0
lea ecx, [esp + 0x50]
push ecx
call fcn.0046a650
add esp, 4
mov dword [esp + 0x36c], ebx
call fcn.0046a640
fstp qword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x78]
push str._.2f
push ecx
call fcn.004dbc12
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 [0x4f4164]
lea edx, [esp + 0x60]
push eax
push ebx
push edx
call fcn.004017e0
mov ecx, ebp
call fcn.00466f40
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.00466f00
fld qword [esp + 0x20]
sub esp, 8
lea ecx, [esp + 0xdc]
fstp qword [esp]
push str._.2f
push ecx
call fcn.004dbc12
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.00466f00
mov ecx, ebp
call fcn.00466e00
mov ecx, ebp
call fcn.00466e90
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 + 0x1c], 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 + 0x24], 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 edx, [ecx + edx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x30], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov cl, byte [edi + edx + 1]
mov dl, byte [edi + edx + 2]
mov byte [esp + 0x16], cl
mov byte [esp + 0x20], dl
call fcn.00469590
push ebx
call fcn.00469790
add esp, 8
or ecx, 0xffffffff
lea edx, [esp + 0x19c]
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
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]
lea edi, [esp + 0x19c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x466a37
mov al, 0x5c
cmp byte [esp + ecx + 0x19c], al
jne 0x466a2f
inc edx
cmp edx, 4
je 0x466a37
dec ecx
jns 0x466a25
mov byte [esp + ecx + 0x19d], 0
lea ecx, [esp + 0x19c]
push ecx
call fcn.00469390
mov edx, dword [esp + 0x1c]
push edx
call fcn.00469990
add esp, 8
mov eax, 0x509698
mov dl, byte [ebp]
mov bl, byte [eax]
mov cl, dl
cmp dl, bl
jne 0x466a87
test cl, cl
je 0x466a83
mov dl, byte [ebp + 1]
mov bl, byte [eax + 1]
mov cl, dl
cmp dl, bl
jne 0x466a87
add ebp, 2
add eax, 2
test cl, cl
jne 0x466a5e
xor eax, eax
jmp 0x466a8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x466a94
push 1
jmp 0x466a96
push 0
call fcn.00469a50
mov eax, dword [esp + 0x30]
add esp, 4
mov esi, 0x509698
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x466acf
test cl, cl
je 0x466acb
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x466acf
add eax, 2
add esi, 2
test cl, cl
jne 0x466aa7
xor eax, eax
jmp 0x466ad4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x466adc
push 1
jmp 0x466ade
push 0
call fcn.00469a60
mov al, byte [esp + 0x16]
add esp, 4
cmp al, 1
jne 0x466af2
push 1
jmp 0x466af4
push 0
call fcn.0046a0f0
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.0046a110
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00469ee0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00469ef0
add esp, 0xc
lea eax, [esp + 0x12]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push 0x507460
call fcn.00415b10
sub esp, 0x10
lea edx, [esp + 0x4d]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
push str.CurrentSelected
mov byte [esp + 0x398], 1
call fcn.00415b10
sub esp, 0x10
lea eax, [esp + 0x5e]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
push str.Language
mov byte [esp + 0x3a8], 2
call fcn.00415b10
lea ecx, [esp + 0x74]
mov byte [esp + 0x3a0], 3
push ecx
call fcn.00469450
sub esp, 0xc
mov byte [esp + 0x3b0], 4
mov edx, esp
mov dword [esp + 0x70], esp
push str.display.ini
push eax
push edx
call fcn.00404bb0
add esp, 0xc
lea eax, [esp + 0x74]
mov byte [esp + 0x3b0], 5
push eax
call fcn.0047bfb0
add esp, 0x48
mov eax, dword [esp + 0x44]
xor edi, edi
mov bl, 7
cmp eax, edi
mov byte [esp + 0x36c], bl
je 0x466bee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x466be5
cmp al, 0xff
je 0x466be5
dec al
mov byte [ecx], al
jmp 0x466bee
push ecx
call fcn.004db420
add esp, 4
push edi
push 0x3a8
sub esp, 0x10
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push str.CodePage
push ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
call fcn.004551d0
push ecx
lea eax, [esp + 0x3b]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
push str.Language
mov byte [esp + 0x39c], 8
call fcn.00415b10
lea ecx, [esp + 0x88]
mov byte [esp + 0x394], 9
push ecx
call fcn.00469450
sub esp, 0xc
mov byte [esp + 0x3a4], 0xa
mov edx, esp
mov dword [esp + 0x54], esp
push str.display.ini
push eax
push edx
call fcn.00404bb0
add esp, 0xc
mov byte [esp + 0x3a4], 0xb
call fcn.0047c5f0
mov esi, eax
mov eax, dword [esp + 0x9c]
add esp, 0x38
cmp eax, edi
mov byte [esp + 0x36c], bl
je 0x466cad
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x466ca4
cmp al, 0xff
je 0x466ca4
dec al
mov byte [ecx], al
jmp 0x466cad
push ecx
call fcn.004db420
add esp, 4
push esi
call fcn.00469d40
add esp, 4
lea eax, [esp + 0x13]
push edi
push edi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push str.DsPrintMode
call fcn.00415b10
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
push str.Diagnosis
mov byte [esp + 0x39c], 0xc
call fcn.00415b10
lea eax, [esp + 0x88]
mov byte [esp + 0x394], 0xd
push eax
call fcn.00469450
sub esp, 0xc
mov byte [esp + 0x3a4], 0xe
mov ecx, esp
mov dword [esp + 0x54], esp
push str.display.ini
push eax
push ecx
call fcn.00404bb0
add esp, 0xc
mov byte [esp + 0x3a4], 0xf
call fcn.0047c5f0
mov esi, eax
mov eax, dword [esp + 0x9c]
add esp, 0x38
cmp eax, edi
mov byte [esp + 0x36c], bl
je 0x466d66
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x466d5d
cmp al, 0xff
je 0x466d5d
dec al
mov byte [ecx], al
jmp 0x466d66
push ecx
call fcn.004db420
add esp, 4
cmp esi, edi
jne 0x466d6d
push edi
jmp 0x466d6f
push 1
call fcn.00469d60
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, edi
je 0x466d9b
mov al, byte [ecx - 1]
test al, al
je 0x466d91
cmp al, 0xff
je 0x466d91
dec al
mov byte [ecx - 1], al
jmp 0x466d9b
dec ecx
push ecx
call fcn.004db420
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 0x466dcb
mov al, byte [ecx - 1]
test al, al
je 0x466dc1
cmp al, 0xff
je 0x466dc1
dec al
mov byte [ecx - 1], al
jmp 0x466dcb
dec ecx
push ecx
call fcn.004db420
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