Function at 0x47feb0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49f469
push eax
mov dword fs:[0], esp
sub esp, 0x34c
xor eax, eax
lea edx, [esp + 0x120]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 5
mov esi, str.DisplayDiagnoseData
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x14
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x130]
push ecx
push 0xffff
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
jne 0x47ff3a
xor al, al
jmp 0x480550
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
mov dword [ebp], edx
jne 0x47ff59
xor al, al
jmp 0x480550
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x294]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [ebp + 0xc]
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]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
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.00480600
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00480640
push 0
mov ecx, ebp
call fcn.00480640
lea eax, [esp + 0x48]
push eax
call fcn.004828f0
mov dword [esp + 0x368], 0
call fcn.004828e0
fstp qword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x74]
push str._.2f
push eax
call fcn.0048dfde
mov cl, byte [esp + 0x5c]
add esp, 4
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00401bb0
mov edx, dword [0x4a0148]
lea eax, [esp + 0x58]
push edx
push 0
push eax
mov ecx, esi
call fcn.0040a8e0
mov ecx, ebp
call fcn.004806a0
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebp
call fcn.00480660
fld qword [esp + 0x34]
sub esp, 8
lea edx, [esp + 0xd4]
fstp qword [esp]
push str._.2f
push edx
call fcn.0048dfde
lea edi, [esp + 0xdc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0xcc]
push ecx
push eax
mov ecx, ebp
call fcn.00480660
mov ecx, ebp
call fcn.00480580
mov ecx, ebp
call fcn.004805f0
lea esi, [eax + 4]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
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 + 0x30], 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 edi, ecx
mov cl, byte [edi + ebp + 1]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
push edx
call fcn.00484a10
mov al, byte [edi + ebp + 2]
lea edx, [edi + ebp + 3]
mov byte [esp + 0x48], 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
push esi
lea edx, [ecx + edx + 1]
or ecx, 0xffffffff
mov edi, 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 + 0x19], cl
mov byte [esp + 0x20], dl
call fcn.00484140
push ebx
call fcn.00484340
add esp, 0xc
lea edx, [esp + 0x194]
mov edi, esi
or ecx, 0xffffffff
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 + 0x194]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x480177
cmp byte [esp + ecx + 0x194], 0x5c
jne 0x48016f
inc edx
cmp edx, 4
je 0x480177
dec ecx
jns 0x480164
mov byte [esp + ecx + 0x195], 0
lea ecx, [esp + 0x194]
push ecx
call fcn.00483f40
mov edx, dword [esp + 0x34]
push edx
call fcn.00484540
add esp, 8
mov eax, 0x4ae3a8
mov dl, byte [ebp]
mov bl, byte [eax]
mov cl, dl
cmp dl, bl
jne 0x4801c7
test cl, cl
je 0x4801c3
mov dl, byte [ebp + 1]
mov bl, byte [eax + 1]
mov cl, dl
cmp dl, bl
jne 0x4801c7
add ebp, 2
add eax, 2
test cl, cl
jne 0x48019e
xor eax, eax
jmp 0x4801cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov ebx, 1
jne 0x4801d8
push ebx
jmp 0x4801da
push 0
call fcn.00484600
add esp, 4
lea eax, [esp + 0x1c]
push eax
call fcn.00484200
add esp, 4
mov eax, dword [0x4a0148]
push ebx
lea ecx, [esp + 0x17]
push eax
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x370], bl
mov byte [esp + 0x1f], 0x5c
call fcn.004715e0
push eax
lea edx, [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x28]
call fcn.00454280
mov ecx, dword [0x4a0148]
mov byte [esp + 0x364], 2
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.0040a8e0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x364], bl
test eax, eax
je 0x480268
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x48025f
cmp al, 0xff
je 0x48025f
dec al
mov byte [ecx], al
jmp 0x480268
push ecx
call fcn.0048d500
add esp, 4
mov edi, str.BRAND.ini
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4a0148]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
cmp edx, esi
ja 0x48028e
call fcn.0048d50b
xor edi, edi
cmp esi, edi
jbe 0x4802d8
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x20]
lea ebp, [eax + esi]
push ebp
call fcn.0040aba0
test al, al
je 0x4802d8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.BRAND.ini
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
xor edi, edi
mov byte [ecx + ebp], 0
push edi
push edi
sub esp, 0x10
lea edx, [esp + 0x2b]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
push str.LogFlag
call fcn.00401aa0
sub esp, 0x10
lea eax, [esp + 0x3a]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
push str.BRAND
mov byte [esp + 0x394], 3
call fcn.00401aa0
sub esp, 0x10
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
mov byte [esp + 0x3a0], 4
call fcn.0040a690
mov byte [esp + 0x39c], bl
call fcn.00485d10
add esp, 0x38
cmp eax, edi
je 0x480343
push ebx
jmp 0x480344
push edi
call fcn.00484610
mov al, byte [esp + 0x15]
add esp, 4
cmp al, bl
jne 0x480357
push ebx
jmp 0x480358
push edi
call fcn.004849f0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.00484a00
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00484920
mov edx, dword [esp + 0x1c]
push edx
call fcn.00484930
add esp, 0xc
lea eax, [esp + 0x12]
push edi
push edi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
push str.DsPrintMode
call fcn.00401aa0
sub esp, 0x10
lea edx, [esp + 0x39]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
push str.Diagnosis
mov byte [esp + 0x394], 5
call fcn.00401aa0
lea eax, [esp + 0x80]
mov byte [esp + 0x38c], 6
push eax
call fcn.00484000
sub esp, 0xc
mov byte [esp + 0x39c], 7
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.display.ini
push eax
push ecx
call fcn.0044b450
add esp, 0xc
mov byte [esp + 0x39c], 8
call fcn.00485d10
mov esi, eax
mov eax, dword [esp + 0x94]
add esp, 0x38
cmp eax, edi
mov byte [esp + 0x364], bl
je 0x480431
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x480428
cmp al, 0xff
je 0x480428
dec al
mov byte [ecx], al
jmp 0x480431
push ecx
call fcn.0048d500
add esp, 4
cmp esi, edi
jne 0x480438
push edi
jmp 0x480439
push ebx
call fcn.00484900
add esp, 4
lea edx, [esp + 0x12]
push edi
push edi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
push str.DBFORMAT
call fcn.00401aa0
sub esp, 0x10
lea eax, [esp + 0x39]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
push str.DBFORMAT
mov byte [esp + 0x394], 9
call fcn.00401aa0
lea ecx, [esp + 0x80]
mov byte [esp + 0x38c], 0xa
push ecx
call fcn.00484000
sub esp, 0xc
mov byte [esp + 0x39c], 0xb
mov edx, esp
mov dword [esp + 0x4c], esp
push str.CONFIG.INI
push eax
push edx
call fcn.0044b450
add esp, 0xc
mov byte [esp + 0x39c], 0xc
call fcn.00485d10
mov esi, eax
mov eax, dword [esp + 0x94]
add esp, 0x38
cmp eax, edi
mov byte [esp + 0x364], bl
je 0x4804f1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4804e8
cmp al, 0xff
je 0x4804e8
dec al
mov byte [ecx], al
jmp 0x4804f1
push ecx
call fcn.0048d500
add esp, 4
push esi
call fcn.00484a20
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, edi
je 0x48051e
mov al, byte [ecx - 1]
test al, al
je 0x480514
cmp al, 0xff
je 0x480514
dec al
mov byte [ecx - 1], al
jmp 0x48051e
dec ecx
push ecx
call fcn.0048d500
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], edi
cmp ecx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x48054e
mov al, byte [ecx - 1]
test al, al
je 0x480544
cmp al, 0xff
je 0x480544
dec al
mov byte [ecx - 1], al
jmp 0x48054e
dec ecx
push ecx
call fcn.0048d500
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x35c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x358
ret