Function at 0x408f10
Capabilities:
Check if file exists
Create directory
Create process on windows
Get disk size
Get file attributes
Get number of processors
Hide graphical window
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433e4a
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x449620]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ecx
call fcn.00404e10
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call esi
mov ecx, eax
call fcn.004051c0
lea ecx, [esp + 0x2c]
call fcn.0040bd40
mov dword [esp + 0x280], 0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x409a87
mov eax, dword [0x44e7d4]
cmp dword [eax - 0xc], 0
jl 0x409a87
push ecx
push eax
call fcn.0041ba7c
add esp, 8
test eax, eax
je 0x409a87
sub eax, dword [0x44e7d4]
sar eax, 1
js 0x409a87
mov cl, 1
call fcn.00405bd0
call fcn.00405490
call fcn.0040a2f0
test al, al
jne 0x408ff8
mov dword [esp + 0x280], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x409d3b
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x280], 5
call fcn.00405a70
mov eax, dword [0x44e808]
cmp dword [eax - 0xc], 0
jne 0x4090bc
push dword [0x44e7ec]
call fcn.0041cc56
add esp, 4
cmp eax, 1
je 0x40903c
cmp eax, 2
jne 0x409066
cmp dword [esp + 0x44], 0
jne 0x40905a
push 0
push 0
push 0
push 0
lea eax, [esp + 0x50]
push eax
push 0x408e20
call fcn.0040f49b
push 5
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040beb0
test al, al
jne 0x4090bc
xor cl, cl
call fcn.00405bd0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x409087
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x409098
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp + 0x280], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x409d3b
mov ecx, 1
call fcn.00406e20
call fcn.00405e70
mov ecx, dword [0x44e7d8]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
call fcn.00408630
add esp, 0xc
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x409128
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x280], 6
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40915a
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x48], ebx
mov byte [esp + 0x280], 7
movzx eax, word [esp + 0x10]
push eax
movzx eax, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push str.Started_EpicScale.exe:__d._d._d._d
push eax
call fcn.00404ac0
xor esi, esi
add esp, 0x18
cmp dword [esp + 0x30], esi
jle 0x4091cf
push dword [edi + esi*4]
lea eax, [esp + 0x4c]
push str.__s_
push eax
call fcn.00404ac0
mov ebx, dword [esp + 0x54]
lea ecx, [esp + 0x34]
add esp, 0xc
push dword [ebx - 0xc]
push ebx
call fcn.00404340
inc esi
cmp esi, dword [esp + 0x30]
jl 0x4091a2
push 1
mov edx, 0x44e808
lea ecx, [esp + 0x2c]
call fcn.00408460
mov eax, dword [0x44e7e8]
add esp, 4
cmp dword [eax - 0xc], 0
jl 0x409235
push 0x441d58
push eax
call fcn.0041ba7c
mov ecx, eax
add esp, 8
mov eax, dword [0x44e7e8]
test ecx, ecx
je 0x40920c
sub ecx, eax
sar ecx, 1
jns 0x409235
cmp dword [eax - 0xc], 0
jl 0x409235
push 0x441d60
push eax
call fcn.0041ba7c
add esp, 8
test eax, eax
je 0x409235
sub eax, dword [0x44e7e8]
sar eax, 1
js 0x409235
mov eax, 1
jmp 0x409237
xor eax, eax
mov ecx, 2
mov dword [0x44e728], eax
call fcn.00406e20
call fcn.00406830
mov ecx, 3
call fcn.00406e20
or edi, 0xffffffff
jmp 0x409260
push str.GetDiskFreeSpaceExA
push 0x440830
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4092a7
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
push 0
call eax
test eax, eax
je 0x409314
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
shrd esi, eax, 0x14
shr eax, 0x14
jmp 0x409309
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x409314
mov eax, dword [esp + 0x1c]
mul dword [esp + 0x20]
mov esi, edx
mov edi, eax
push esi
push edi
push 0
push dword [esp + 0x40]
call fcn.00420ac0
push esi
push edi
push 0
push dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
call fcn.00420ac0
mov esi, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], esi
shrd esi, edx, 0x14
shr edx, 0x14
or edi, 0xffffffff
cmp esi, 0x64
jge 0x40940f
jmp 0x409316
xor esi, esi
call fcn.0040cce5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40911e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
mov byte [esp + 0x284], 8
push str.Error:_Not_enough_disk_space_available:__d_MB_nFree_some_space_and_click_OK_or_click_Cancel_to_continue_as_is
push eax
call fcn.00404ac0
mov esi, dword [esp + 0x1c]
mov ecx, 1
add esp, 0xc
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x409375
push 0
lea ecx, [esp + 0x14]
call fcn.004030c0
mov esi, dword [esp + 0x10]
push 0
xor edx, edx
mov ecx, esi
call fcn.00408070
add esp, 4
push 1
push 0x4403c8
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x4093c2
add esi, 0xfffffff0
mov byte [esp + 0x280], 7
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409260
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409260
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x4093e0
push 0
lea ecx, [esp + 0x14]
call fcn.004030c0
mov esi, dword [esp + 0x10]
push 0
xor edx, edx
mov ecx, esi
call fcn.00408070
add esi, 0xfffffff0
mov byte [esp + 0x284], 7
add esp, 4
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40940f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40942b
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push str.Nova
mov byte [esp + 0x284], 9
lea eax, [esp + 0x1c]
push dword [0x44e7d4]
push str._s_s.dat
push eax
call fcn.00404ac0
add esp, 0x10
mov dword [esp + 0x10], 0x3e8
jmp 0x409470
mov esi, dword [esp + 0x18]
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x409492
push 0
lea ecx, [esp + 0x1c]
call fcn.004030c0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4094b9
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.004023d0
add esp, 8
test al, al
jne 0x40961d
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00405d50
push 0x4405ec
lea ecx, [esp + 0x20]
call fcn.00405370
add esp, 4
mov byte [esp + 0x280], 0xa
add esi, 0xfffffff0
mov eax, dword [eax]
lea edi, [eax - 0x10]
cmp edi, esi
je 0x409593
cmp dword [esi + 0xc], 0
jl 0x409586
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x409586
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x409520
cmp ecx, dword [edi]
jne 0x409520
mov dword [esp + 0x20], edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x409560
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
je 0x409a7b
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0041b856
add esp, 0x10
or edi, 0xffffffff
lea ecx, [esi + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409579
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x18], eax
jmp 0x409596
push dword [eax - 0xc]
lea ecx, [esp + 0x1c]
push eax
call fcn.004031c0
or edi, 0xffffffff
mov byte [esp + 0x280], 9
mov ecx, edi
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4095bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x18]
call fcn.0040a800
test al, al
je 0x4095fe
push 0
push 0
push 0
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x24]
call fcn.00408a70
add esp, 0xc
cmp eax, 1
je 0x409a80
mov ecx, eax
call fcn.0040c280
cmp al, 1
je 0x409a80
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0xbb8
mov dword [esp + 0x10], esi
call fcn.00406830
jmp 0x409470
push 0
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 4
call fcn.00406e20
push 0x4403c8
lea ecx, [esp + 0x28]
call fcn.00403310
mov byte [esp + 0x280], 0xb
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x409665
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x280], 0xc
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x40971a
cmp dword [esp + 0x30], 1
jle 0x40971a
mov edx, dword [edx + 4]
test edx, edx
jne 0x40969d
xor ecx, ecx
jmp 0x4096b1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4096a2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004031c0
lea eax, [esp + 0x24]
push str.checkfxn
push eax
call fcn.004077a0
add esp, 8
test al, al
je 0x4096d9
push str.EpicScaleCP
jmp 0x409711
lea eax, [esp + 0x24]
push str.test
push eax
call fcn.004077a0
add esp, 8
test al, al
je 0x4096f6
push str.EpicScaleCU
jmp 0x409711
lea eax, [esp + 0x24]
push str.reconnect
push eax
call fcn.004077a0
add esp, 8
test al, al
je 0x40971a
push str.EpicScaleSG
lea ecx, [esp + 0x28]
call fcn.004032c0
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
jge 0x409729
or ecx, 0xffffffff
jmp 0x40974a
push str..dll
push eax
call fcn.0041ba7c
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x24]
test ecx, ecx
jne 0x409746
or ecx, 0xffffffff
jmp 0x40974a
sub ecx, eax
sar ecx, 1
test ecx, ecx
setg cl
mov byte [esp + 0x17], cl
test cl, cl
je 0x409767
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00404d00
jmp 0x409780
push eax
push dword [0x44e7d4]
lea eax, [esp + 0x18]
push str._s_s.dat
push eax
call fcn.00404ac0
add esp, 0x10
lea eax, [esp + 0x10]
mov ecx, 0x44e848
push eax
call fcn.00404d00
mov esi, dword [esp + 0x10]
mov ecx, str.yam.dll
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4097c6
test dx, dx
je 0x4097c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4097c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4097a0
xor eax, eax
jmp 0x4097cb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x4097e8
push 0
push 0
push 0
push 0
push 0
push 0x408c80
call fcn.0040f49b
mov ecx, 5
call fcn.00406e20
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [esp + 0x3b], al
test al, al
je 0x409835
cmp byte [esp + 0x17], 0
jne 0x409870
sub esp, 8
lea ecx, [esp + 0x18]
call fcn.004023d0
add esp, 8
test al, al
jne 0x409870
mov esi, dword [esp + 0x10]
mov byte [esp + 0x17], 0
mov byte [esp + 0x20], 0
mov ecx, 6
call fcn.00406e20
cmp byte [esp + 0x20], 0
jne 0x409979
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4098ac
push 0x80004005
call fcn.00403170
push dword [ebp + 8]
lea edx, [esp + 0x20]
mov byte [esp + 0x1b], 1
push 0x44e73c
push 0
lea ecx, [esp + 0x1c]
call fcn.00408a70
mov esi, dword [esp + 0x1c]
mov ecx, eax
movzx eax, byte [esp + 0x23]
xor edx, edx
add esp, 0xc
mov dword [esp + 0x34], ecx
cmp ecx, 1
cmovne eax, edx
mov dword [esp + 0x20], eax
jmp 0x40983f
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
cmp byte [esp + 0x3b], 0
mov byte [esp + 0x280], 0xd
jne 0x4098d0
mov eax, 1
jmp 0x4098dc
xor eax, eax
cmp byte [esp + 0x17], al
setne al
add eax, 2
push dword [esp + 0x34]
push eax
push esi
lea eax, [esp + 0x3c]
push str.Error:_RUNDLL3_failed_Exe:__s_reason___d_err___d
push eax
call fcn.00404ac0
mov edi, dword [esp + 0x44]
mov ecx, 1
add esp, 0x14
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, ecx
jge 0x409916
push 0
lea ecx, [esp + 0x34]
call fcn.004030c0
mov edi, dword [esp + 0x30]
push 0
xor edx, edx
mov ecx, edi
call fcn.00408070
add esp, 4
mov ecx, esi
call fcn.00405d50
push 0
push 0
push 0
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x24]
call fcn.00408a70
add esp, 0xc
cmp eax, 1
je 0x409955
mov ecx, eax
call fcn.0040c280
lea edx, [edi - 0x10]
mov byte [esp + 0x280], 0xc
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409979
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x280], 0xb
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40999a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x280], 9
mov ecx, edi
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4099bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x280], 7
mov ecx, edi
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4099e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x280], 6
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409a05
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x280], 5
mov ecx, edi
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409a2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x409a3b
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x409a4c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp + 0x280], 0xffffffff
mov esi, dword [esp + 0x2c]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x409a72
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
jmp 0x409d47
call fcn.00403070
push 0
call fcn.0041d7d9
call fcn.00405a70
mov eax, dword [0x44e808]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x409ae6
push str._27_
lea ecx, [esp + 0x40]
call fcn.00403310
push 1
mov edx, 0x44e808
mov byte [esp + 0x284], 1
mov ecx, eax
call fcn.00408460
mov byte [esp + 0x284], 0
add esp, 4
mov edx, dword [esp + 0x3c]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409ae6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x409b0e
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x280], 2
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x409b40
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x440438
mov byte [esp + 0x284], 3
lea eax, [esp + 0x2c]
push dword [esp + 0x30]
push str._s_s
push eax
call fcn.00404ac0
push str.Nova
push dword [esp + 0x40]
lea eax, [esp + 0x28]
push str._s_s.dat
push eax
call fcn.00404ac0
mov edi, dword [esp + 0x48]
mov ecx, 1
add esp, 0x20
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, ecx
jge 0x409bab
push 0
lea ecx, [esp + 0x2c]
call fcn.004030c0
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.00405d50
push 0x208
lea eax, [esp + 0x68]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, edi
lea ecx, [esp + 0x64]
call fcn.00407240
test eax, eax
je 0x409ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x409bfe
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x280], 4
cmp dword [0x44e728], 2
push edi
sbb ecx, ecx
and ecx, dword [0x44e728]
imul eax, ecx, 0x98
mov dword [0x44e728], ecx
lea ecx, [esp + 0x68]
push ecx
push esi
push dword [eax + 0x43fc80]
lea eax, [esp + 0x2c]
push eax
call fcn.00404ac0
mov esi, dword [esp + 0x30]
add esp, 0x14
push 0
push str.EpicScale_upgrade
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
add esi, 0xfffffff0
mov byte [esp + 0x280], 3
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409c7e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x280], 2
mov ecx, ebx
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409cfe
mov ecx, dword [edx]
push edx
jmp 0x409cf9
mov esi, dword [esp + 0x10]
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x409cc2
push 0
lea ecx, [esp + 0x14]
call fcn.004030c0
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00405d50
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
mov byte [esp + 0x280], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409cfe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x280], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409d1f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x280], 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x409d45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0041b617
mov esp, ebp
pop ebp
ret