Function at 0x47d2e0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ab16c
push eax
mov dword fs:[0], esp
sub esp, 0x320
xor eax, eax
lea edx, [esp + 0xf4]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 5
mov esi, str.DisplayDiagnoseData
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x14
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x3c]
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 + 0x104]
push ecx
push 0xffff
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
jne 0x47d36a
xor al, al
jmp 0x47d76f
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 0x47d386
xor al, al
jmp 0x47d76f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x268]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
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.0047d820
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0047d870
push ebx
mov ecx, ebp
call fcn.0047d870
lea ecx, [esp + 0x2c]
push ecx
call fcn.00488000
mov dword [esp + 0x33c], ebx
call fcn.00487ff0
fstp qword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x48]
push str._.2f
push ecx
call fcn.00498c63
mov dl, byte [esp + 0x40]
add esp, 4
mov ecx, esp
mov dword [esp + 0x28], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x4ad134]
lea edx, [esp + 0x3c]
push eax
push ebx
push edx
call fcn.0041b7e0
mov ecx, ebp
call fcn.0047d8d0
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x3c]
push ecx
push eax
mov ecx, ebp
call fcn.0047d890
fld qword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0xa8]
fstp qword [esp]
push str._.2f
push ecx
call fcn.00498c63
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0xa0]
push ecx
push edx
mov ecx, ebp
call fcn.0047d890
mov ecx, ebp
call fcn.0047d7a0
mov ecx, ebp
call fcn.0047d810
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 + 0x24], 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 al, byte [edi + ebp + 1]
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00487ab0
mov dl, byte [edi + ebp + 2]
or ecx, 0xffffffff
mov byte [esp + 0x2c], dl
lea edx, [edi + ebp + 3]
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], 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 al, byte [edi + edx + 1]
mov cl, byte [edi + edx + 2]
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], cl
call fcn.004871e0
push ebx
call fcn.004873e0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x168]
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 + 0x168]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x47d5a4
mov al, 0x5c
cmp byte [esp + ecx + 0x168], al
jne 0x47d59c
inc edx
cmp edx, 4
je 0x47d5a4
dec ecx
jns 0x47d592
mov byte [esp + ecx + 0x169], 0
lea ecx, [esp + 0x168]
push ecx
call fcn.00486fe0
mov edx, dword [esp + 0x28]
push edx
call fcn.004875e0
add esp, 8
mov eax, 0x4bcec4
mov dl, byte [ebp]
mov bl, byte [eax]
mov cl, dl
cmp dl, bl
jne 0x47d5f4
test cl, cl
je 0x47d5f0
mov dl, byte [ebp + 1]
mov bl, byte [eax + 1]
mov cl, dl
cmp dl, bl
jne 0x47d5f4
add ebp, 2
add eax, 2
test cl, cl
jne 0x47d5cb
xor eax, eax
jmp 0x47d5f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov ebx, 1
jne 0x47d605
push ebx
jmp 0x47d607
push 0
call fcn.004876a0
add esp, 4
lea eax, [esp + 0x11]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push str.FLAG
call fcn.0041b350
sub esp, 0x10
lea edx, [esp + 0x36]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
push str.COMMONLOG
mov byte [esp + 0x364], bl
call fcn.0041b350
mov byte [esp + 0x35c], 0
call fcn.0048c610
add esp, 0x24
test eax, eax
je 0x47d65f
push ebx
jmp 0x47d661
push 0
call fcn.004876b0
mov al, byte [esp + 0x17]
add esp, 4
cmp al, bl
jne 0x47d674
push ebx
jmp 0x47d676
push 0
call fcn.00487a90
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call fcn.00487aa0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004879c0
mov edx, dword [esp + 0x20]
push edx
call fcn.004879d0
add esp, 0xc
lea eax, [esp + 0x12]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
push str.DSPRINTMODE
call fcn.0041b350
sub esp, 0x10
lea edx, [esp + 0x35]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push str.DIAGNOSIS
mov byte [esp + 0x364], 2
call fcn.0041b350
mov byte [esp + 0x35c], 0
call fcn.0048c610
add esp, 0x24
test eax, eax
jne 0x47d6f0
push eax
jmp 0x47d6f1
push ebx
call fcn.004879a0
add esp, 4
lea eax, [esp + 0x12]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
push str.DBFORMAT
call fcn.0041b350
sub esp, 0x10
lea edx, [esp + 0x35]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push str.DBFORMAT
mov byte [esp + 0x364], 3
call fcn.0041b350
mov byte [esp + 0x35c], 0
call fcn.0048c610
push eax
call fcn.00487ac0
mov ecx, dword [esp + 0x58]
add esp, 0x28
test ecx, ecx
je 0x47d76d
mov al, byte [ecx - 1]
test al, al
je 0x47d763
cmp al, 0xff
je 0x47d763
dec al
mov byte [ecx - 1], al
jmp 0x47d76d
dec ecx
push ecx
call fcn.00498130
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x32c
ret