Function at 0x45edb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, str.CDCHECK
call fcn.00487da0
test eax, eax
je 0x45f067
push dword [eax + 4]
call fcn.00494176
add esp, 4
test eax, eax
je 0x45f067
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push edi
cmp byte [0x53a358], 0
jne 0x45ee33
mov ecx, str.REG_LOCAL
call fcn.00487da0
mov byte [0x53a358], 0
test eax, eax
je 0x45ee14
mov eax, dword [eax + 4]
jmp 0x45ee19
mov eax, str.MAJIRO_RUNTIME
push 0x800
push eax
push 0x53a358
call fcn.00495450
add esp, 0xc
mov byte [0x53ab57], 0
cmp byte [0x53ab68], 0
jne 0x45ee75
mov ecx, str.REG_GLOBAL
call fcn.00487da0
mov byte [0x53ab68], 0
test eax, eax
je 0x45ee56
mov eax, dword [eax + 4]
jmp 0x45ee5b
mov eax, str.MAJIRO_SYSTEM
push 0x800
push eax
push 0x53ab68
call fcn.00495450
add esp, 0xc
mov byte [0x53b367], 0
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x53a358
push eax
push 0x4c3c36
push str.InstFrom
mov ecx, 0x53ab68
call fcn.0047e850
add esp, 0x10
cmp byte [ebp - 0x20c], 0
je 0x45f075
xor eax, eax
jmp 0x45eeb0
mov cl, byte [ebp + eax - 0x20c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x45eeb0
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45eed0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
je 0x45ef03
lea edi, [ebp - 0x108]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x45eef0
mov ax, word [0x4c3b10]
mov word [edi], ax
lea ecx, [ebp - 0x108]
dec ecx
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45ef10
mov eax, dword [str.DiskID]
mov dword [ecx], eax
mov ax, word [0x4c78ec]
mov word [ecx + 4], ax
mov al, byte [0x4c78ee]
mov byte [ecx + 6], al
lea eax, [ebp - 0x108]
push 0x4c3c44
push eax
call fcn.00494396
mov esi, eax
add esp, 8
test esi, esi
jne 0x45efa1
lea ecx, [ecx]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x514]
push 0x4c78f0
push eax
call fcn.00493964
add esp, 0xc
push 0x31
call fcn.004568b0
push eax
lea eax, [ebp - 0x514]
push eax
push 0
call ebx
cmp eax, 1
jne 0x45f086
lea eax, [ebp - 0x108]
push 0x4c3c44
push eax
call fcn.00494396
mov esi, eax
add esp, 8
test esi, esi
je 0x45ef50
push esi
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00494193
push esi
call fcn.00494b54
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push str._NULL_
push str.DiskID
call fcn.00456860
mov esi, eax
call fcn.00456810
mov edx, esi
mov ecx, eax
call fcn.0047e850
add esp, 0x10
lea ecx, [ebp - 0x108]
lea eax, [ebp - 0x310]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45f011
test dl, dl
je 0x45f00d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45f011
add eax, 2
add ecx, 2
test dl, dl
jne 0x45eff1
xor eax, eax
jmp 0x45f016
sbb eax, eax
or eax, 1
test eax, eax
je 0x45f064
push 0x10
call fcn.004568b0
push eax
push 0x4c7928
push 0
call ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x514]
push 0x4c78f0
push eax
call fcn.00493964
add esp, 0xc
push 0x31
call fcn.004568b0
push eax
lea eax, [ebp - 0x514]
push eax
push 0
call ebx
cmp eax, 1
je 0x45edf1
jmp 0x45f086
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
push 0x10
call fcn.004568b0
push eax
push 0x4c78a8
push 0
call ebx
push 0
call fcn.0049501f
int3