Function at 0x4021c0
Capabilities:
Get common file path
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x445155
push eax
mov dword fs:[0], esp
sub esp, 0x534
mov eax, dword [esp + 0x544]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ebp, [esi + 0x1b8]
mov ecx, ebp
call fcn.004035c0
xor ebx, ebx
cmp eax, ebx
jne 0x4025b7
lea ecx, [esp + 0x14]
mov byte [esi + 0x1b4], 1
call fcn.004033b0
mov eax, dword [ebp]
mov dword [esp + 0x54c], ebx
cmp eax, 9
jne 0x40257a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Num_Reboots
call fcn.0042d315
push ecx
mov byte [esp + 0x554], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push str.SOFTWAREEACADEMYDC
call fcn.0042d315
lea ecx, [esp + 0x1c]
mov byte [esp + 0x554], bl
call fcn.0040d330
mov edi, eax
cmp edi, 0xffffffff
jne 0x40240c
mov eax, dword [esi + 0x1f0]
cmp eax, ebx
jle 0x402350
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Num_Reboots
call fcn.0042d315
push ecx
mov byte [esp + 0x558], 2
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SOFTWAREEACADEMYDC
call fcn.0042d315
lea ecx, [esp + 0x20]
mov byte [esp + 0x558], bl
call fcn.0040d530
lea ecx, [esp + 0x144]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x144]
lea ecx, [esp + 0x10]
push edx
call fcn.0042d315
push str._rebootrun
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 3
call fcn.0042d683
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0042d01c
push ecx
mov byte [esp + 0x554], 4
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4586b8
call fcn.0042d315
push ecx
mov byte [esp + 0x558], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
call fcn.0042d315
lea ecx, [esp + 0x20]
mov byte [esp + 0x558], 3
call fcn.0040d5d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x54c], bl
call fcn.0042d2a7
lea ecx, [esp + 0x3c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x20]
push edx
call fcn.0042d315
push str.DC.GAM
lea ecx, [esp + 0x24]
mov byte [esp + 0x550], 6
call fcn.0042d683
mov eax, dword [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4023f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
call fcn.004323d2
mov ecx, dword [esp + 0x20]
push ebx
push 1
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x558], 7
call fcn.00432447
mov edx, dword [esp + 0x554]
lea ecx, [esp + 0x28]
push edx
call fcn.004325ba
lea ecx, [esp + 0x28]
call fcn.00432777
lea ecx, [esp + 0x28]
mov byte [esp + 0x54c], 6
call fcn.00432404
lea ecx, [esp + 0x20]
mov byte [esp + 0x54c], bl
call fcn.0042d2a7
jmp 0x40256e
push ecx
cmp edi, ebx
mov byte [esi + 0x20c], 1
mov ecx, esp
jbe 0x402537
mov dword [esp + 0x20], esp
push str.Num_Reboots
call fcn.0042d315
push ecx
mov byte [esp + 0x554], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SOFTWAREEACADEMYDC
call fcn.0042d315
lea ecx, [esp + 0x1c]
mov byte [esp + 0x554], bl
call fcn.0040d680
cmp edi, 1
je 0x402496
dec edi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Num_Reboots
call fcn.0042d315
push ecx
mov byte [esp + 0x558], 9
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SOFTWAREEACADEMYDC
call fcn.0042d315
lea ecx, [esp + 0x20]
mov byte [esp + 0x558], bl
call fcn.0040d530
lea eax, [esp + 0x144]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x144]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042d315
push str._rebootrun
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 0xa
call fcn.0042d683
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0042d01c
push ecx
mov byte [esp + 0x554], 0xb
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4586b8
call fcn.0042d315
push ecx
mov byte [esp + 0x558], 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
call fcn.0042d315
lea ecx, [esp + 0x20]
mov byte [esp + 0x558], 0xa
call fcn.0040d5d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x54c], bl
call fcn.0042d2a7
jmp 0x40256e
mov dword [esp + 0x20], esp
push str.Num_Reboots
call fcn.0042d315
push ecx
mov byte [esp + 0x554], 0xd
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SOFTWAREEACADEMYDC
call fcn.0042d315
lea ecx, [esp + 0x1c]
mov byte [esp + 0x554], bl
call fcn.0040d680
push 0x87
mov ecx, esi
call fcn.0040f2e3
lea edi, [esi + 0x120]
push ebp
mov ecx, edi
call fcn.00405650
mov eax, dword [esi + 0x118]
lea ecx, [esi + 0x19c]
push eax
call fcn.0042d430
mov ecx, edi
call fcn.0040dc50
lea ecx, [esp + 0x14]
mov dword [esp + 0x54c], 0xffffffff
call fcn.00405620
jmp 0x402628
cmp eax, 3
jne 0x4025c2
push ebx
call fcn.0041b70a
cmp eax, 2
jne 0x402628
mov byte [esi + 0x1b4], 1
mov eax, dword [0x45d440]
mov dword [esp + 0x10], eax
add esi, 0x130
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x550], 0xe
call fcn.0042d3e0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0042d01c
mov ecx, ebp
call fcn.00404290
cmp al, bl
je 0x402614
push ebx
call fcn.0041b70a
lea ecx, [esp + 0x10]
mov dword [esp + 0x54c], 0xffffffff
call fcn.0042d2a7
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x540
ret 4