Function at 0x40c640
Capabilities:
Check mutex on windows
Copy file
Create directory
Create process on windows
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437326
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
call fcn.0040d570
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042d788
mov eax, dword [ebx + 0x5c]
xor edi, edi
cmp eax, 0xb
mov dword [ebp - 4], edi
ja case.default.0x40c688
jmp dword [eax*4 + 0x40d4f8]
push 0x8c
mov ecx, ebx
call fcn.0040c600
push str.zzk_NCSTUDIO_7000F87C04A0_D4EA_11d4_88B8_0050FC09F3B0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c6c3
mov dword [ebx + 0x5c], 1
jmp 0x40d4d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d4d5
mov eax, dword [ebx + 0x1c]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x8d
mov ecx, ebx
call fcn.0040c600
mov ecx, dword [0x445c74]
mov dword [ebp - 0x24], ecx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x1d8]
lea edx, [ebp - 0x1d8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
push 0x104
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
call fcn.0040c040
lea ecx, [ebp - 0x1d8]
lea edx, [ebp - 0x24]
push ecx
push eax
push edx
call fcn.0042cd9b
mov al, byte [ebp - 0x1d8]
add esp, 0xc
test al, al
je 0x40c758
mov eax, dword [ebp - 0x24]
push 0
push 0x31
push eax
call fcn.00434633
cmp eax, 2
jne 0x40c758
push eax
mov ecx, ebx
call fcn.0042f38b
jmp 0x40c772
mov ecx, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0042d71a
jmp 0x40d4d5
mov edx, dword [ebx + 0x1c]
push 0x70
push edx
call dword [sym.imp.USER32.dll_KillTimer]
lea edi, [ebx + 0x78]
lea ecx, [ebp - 0x2c]
push edi
call fcn.0042d48f
mov eax, dword [edi]
mov byte [ebp - 4], 2
push eax
call fcn.0040de00
mov edi, dword [edi]
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x445c74]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
push str.setup.cfg
lea edx, [ebp - 0x6c]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.0042d922
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
push 0x104
push 0x104
mov byte [ebp - 4], 4
call fcn.0042dabd
push eax
push 0x44821c
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0042d71a
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0042db0c
lea eax, [ebp - 0x14]
lea ecx, [ebx + 0x84]
push eax
call fcn.0042d807
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x4c]
push edx
push eax
call fcn.0042d8bc
lea edi, [ebx + 0x7c]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0042d807
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.0042d71a
push edi
lea ecx, [ebp - 0x14]
call fcn.0042d807
push str.config
lea ecx, [ebp - 0x14]
call fcn.0042da69
push str.ncstudio.dat
lea ecx, [ebp - 0x40]
call fcn.0042d788
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.0040d760
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0042d71a
mov eax, dword [ebx + 0x90]
test eax, eax
je 0x40c8e7
mov ecx, dword [ebx + 0x94]
sub ecx, eax
test ecx, 0xfffffffc
je 0x40c8e7
push 0x445644
lea edi, [ebx + 0x88]
call fcn.00409780
add esp, 4
mov ecx, edi
push eax
call fcn.0042da69
mov edi, dword [edi]
push 4
push 0
push edi
mov ecx, ebx
call fcn.00430fe0
cmp eax, 6
jne 0x40c8e7
mov dword [ebx + 0x80], 1
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x40c916
mov edi, dword [ebx + 0x90]
mov eax, dword [ebx + 0x94]
cmp edi, eax
je 0x40c916
push edi
mov ecx, ebx
call fcn.0040db20
mov eax, dword [ebx + 0x94]
add edi, 4
cmp edi, eax
jne 0x40c901
mov edx, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push edx
mov dword [ebx + 0x5c], 3
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0042d71a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0042d71a
jmp 0x40d4d5
push 0x8e
mov ecx, ebx
call fcn.0040c600
lea eax, [ebp - 0x1c]
push str.setup.cfg
lea ecx, [ebp - 0x64]
push eax
push ecx
call fcn.0042d922
mov eax, dword [eax]
lea edx, [ebp - 0x320]
push eax
push 0x104
push edx
push 0x44821c
push str.BACKUPPATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x64]
call fcn.0042d71a
lea eax, [ebp - 0x320]
lea ecx, [ebp - 0x18]
push eax
call fcn.0042d788
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
push ecx
call fcn.0040e570
add esp, 4
test al, al
jne 0x40cb28
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], edi
je 0x40cb28
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
jne 0x40c9e3
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040e470
add esp, 4
lea eax, [ebp - 0xac]
push eax
call fcn.0042d09f
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
push str.Naiky__Y__m__d__H_M_S_
push edx
lea ecx, [ebp - 0x2c]
call fcn.0042d0b2
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
mov byte [ebp - 4], 8
call fcn.0042d8bc
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
call fcn.0040e470
mov ecx, dword [ebp - 0x24]
add esp, 4
push ecx
call esi
test eax, eax
je 0x40cb10
lea edx, [ebp - 0x1c]
push 0x445a48
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.0042d922
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x1d8]
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, [ebp - 0x44]
call fcn.0042d71a
lea edi, [ebp - 0x1d8]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, esi
mov byte [ebp + ecx - 0x1d7], al
jne 0x40ca9e
mov dword [ebp - 0xa8], esi
jmp 0x40caa7
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1d8]
push 0x70
push ecx
mov dword [ebp - 0xa4], 2
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
mov word [ebp - 0x98], 0x214
mov dword [ebp - 0x96], esi
mov dword [ebp - 0x92], esi
mov dword [ebp - 0x8e], str.Copy_files
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, dword [ebx + 0x1c]
push esi
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0042d71a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0042d71a
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x5c], 4
mov byte [ebp - 4], 0
call fcn.0042d71a
jmp 0x40d4d5
push 0x90
mov ecx, ebx
call fcn.0040c600
push 0x104
lea ecx, [ebp - 0x1d8]
push str.D:NcFilesWizards_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebx + 0x1c]
push 0x70
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
je 0x40cb8b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040de00
add esp, 4
lea edx, [ebp - 0x1d8]
push edx
call esi
test eax, eax
je 0x40cba7
lea eax, [ebp - 0x1d8]
push eax
call fcn.0040de00
add esp, 4
mov ecx, dword [ebx + 0x1c]
push edi
push 0x1f4
push 0x70
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 5
jmp 0x40d4d5
push 0x91
mov ecx, ebx
call fcn.0040c600
lea edx, [ebp - 0x320]
push 0x104
push edx
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x320]
push 0x40
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.0042e0bd
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.0042e514
mov esi, eax
push esi
mov dword [ebp - 0x28], esi
call fcn.0042d45b
add esp, 4
mov edi, eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x20], edi
push esi
push edi
call fcn.0042e337
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.0042e15d
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
lea esi, [esi + edi - 0x18]
mov ecx, 6
lea edi, [ebp - 0xc4]
add edx, 0xffffffe8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0
push ecx
push edx
push eax
call fcn.0040dd80
add esp, 0xc
mov ecx, 4
lea edi, [ebp - 0xd4]
lea esi, [ebp - 0xbc]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40ccce
mov eax, dword [0x445c74]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0xbc]
lea edx, [ebp - 0x24]
push ecx
push edx
mov byte [ebp - 4], 0xd
call fcn.0040c550
add esp, 8
call fcn.0040c060
mov ecx, dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
mov ecx, ebx
call fcn.0040d530
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042d484
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0042d71a
jmp 0x40d4d5
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x28]
sub eax, ecx
lea esi, [ebx + 0x74]
mov edi, ecx
sub eax, 0x18
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.0042d6a5
lea eax, [ebp - 0x1d8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x1d8]
lea edx, [ebp - 0x1d8]
push ecx
push 0
push 0x445a24
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x1d8]
push 0x1001
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
call fcn.0042e0bd
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
add edi, edx
push ecx
push edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xf
call fcn.0042e371
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
call fcn.0042e15d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
call fcn.0042d484
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x21c]
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
mov dword [ebp - 0x21c], 0x44
mov dword [ebp - 0x1f0], 1
mov word [ebp - 0x1ec], 5
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebx + 0x60]
lea eax, [ebp - 0x21c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1d8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_SetTimer]
test edi, edi
jne 0x40cde6
push str.ERR_203:_Create_a_process_failed_
jmp 0x40d4ce
lea eax, [ebp - 0x1d8]
mov ecx, esi
push eax
call fcn.0042d857
mov dword [ebx + 0x5c], 6
jmp 0x40d4d5
push 0x92
mov ecx, ebx
call fcn.0040c600
mov eax, dword [ebx + 0x60]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40d4d5
mov ecx, dword [ebx + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebx + 0x64]
push edx
call esi
mov eax, dword [ebx + 0x74]
lea esi, [ebx + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.0042d6a5
mov dword [ebx + 0x5c], 7
jmp 0x40d4d5
mov eax, dword [ebx + 0x1c]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x93
mov ecx, ebx
call fcn.0040c600
mov cl, byte [0x44821c]
xor eax, eax
mov byte [ebp - 0x1d8], cl
mov ecx, 0x40
lea edi, [ebp - 0x1d7]
lea edx, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.setup.cfg
lea eax, [ebp - 0x58]
push edx
push eax
call fcn.0042d922
mov eax, dword [eax]
lea ecx, [ebp - 0x1d8]
push eax
push 0x104
push ecx
push 0x44821c
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x58]
call fcn.0042d71a
lea edx, [ebp - 0x1d8]
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.0042d922
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push edx
call fcn.0040e020
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042d71a
mov eax, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 8
jmp 0x40d4d5
push 0x94
mov ecx, ebx
call fcn.0040c600
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebp - 0x1c]
push str.setup.cfg
lea eax, [ebp - 0x68]
push edx
push eax
call fcn.0042d922
mov eax, dword [eax]
lea ecx, [ebp - 0x424]
push eax
push 0x104
push ecx
push 0x44821c
push str.BACKUPPATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x68]
call fcn.0042d71a
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x18]
push edx
call fcn.0042d788
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x12
push eax
call fcn.0040e570
mov eax, dword [ebp - 0x18]
add esp, 4
cmp dword [eax - 8], edi
je 0x40d080
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40d009
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040e470
add esp, 4
lea edx, [ebp - 0x320]
push 0x104
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x320]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1d8]
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, [ebp - 0x1d8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea edx, [ebp - 0x1d8]
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x60]
push eax
push ecx
call fcn.0042d922
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x320]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x60]
call fcn.0042d71a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0042d71a
mov eax, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x5c], 9
jmp 0x40d4d5
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [ebx + 0x80], edi
je 0x40d458
push 0x95
call fcn.0040fbb0
add esp, 4
mov ecx, ebx
push eax
call fcn.0040c600
mov edx, dword [0x445c74]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x1c]
push str.setup.cfg
lea ecx, [ebp - 0x50]
push eax
push ecx
mov byte [ebp - 4], 0x13
call fcn.0042d922
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push eax
push 0x104
push 0x104
mov byte [ebp - 4], 0x14
call fcn.0042dabd
push eax
push 0x44821c
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.0042d71a
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.0042db0c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x84]
push edx
push eax
call fcn.004113d2
add esp, 8
test eax, eax
jne 0x40d44c
mov eax, dword [0x445c74]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x15
push ecx
lea ecx, [ebp - 0x34]
call fcn.0042d807
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x34]
push edx
call fcn.0042daa5
push str.config_
lea ecx, [ebp - 0x34]
call fcn.0042da69
lea edi, [ebx + 0x78]
lea ecx, [ebp - 0x28]
push edi
call fcn.0042d48f
push str..
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
call fcn.0042da69
lea ecx, [ebp - 0x88]
call fcn.00410457
push 0x445654
mov byte [ebp - 4], 0x17
call fcn.00409780
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.0042d788
mov eax, dword [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x18
call fcn.0041051a
test eax, eax
je 0x40d3c8
lea ecx, [ebp - 0x88]
call fcn.0041073a
lea ecx, [ebp - 0x20]
mov esi, eax
push ecx
lea ecx, [ebp - 0x88]
call fcn.00410932
push str._amend.dat
push 0x4459b0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x19
call fcn.0042c728
test eax, eax
je 0x40d3b4
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x54]
push eax
push ecx
call fcn.0042d8bc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1a
call fcn.0042d807
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x19
call fcn.0042d71a
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
push edx
call fcn.0042d48f
push 0x44821c
push str._amend.dat
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1b
call fcn.0042c728
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x88]
push eax
call fcn.00410809
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x1c
call fcn.00410457
mov ecx, dword [ebp - 0x38]
push 0
push ecx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x1d
call fcn.0041051a
test eax, eax
je 0x40d382
lea edx, [ebx + 0x7c]
push str.ncstudio.fmt
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.0042d922
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
push ecx
push edx
push eax
mov byte [ebp - 4], 0x1e
call fcn.0040e6e0
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042d48f
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1f
call fcn.0042ca38
lea edx, [ebp - 0x5c]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.0042c9c0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x20
call fcn.0042d807
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1f
call fcn.0042d71a
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0042ca38
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0042c944
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x21
call fcn.0042d807
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1f
call fcn.0042d71a
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0042ce88
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call fcn.0042daa5
push 0xa
lea ecx, [ebp - 0x18]
call fcn.0042da90
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1e
call fcn.0042d71a
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1d
call fcn.0042d71a
lea ecx, [ebp - 0xa8]
call fcn.004104d0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x1c
call fcn.00410494
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1b
call fcn.0042d71a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x19
call fcn.0042d71a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x18
call fcn.0042d71a
test esi, esi
jne 0x40d1e7
lea ecx, [ebp - 0x88]
call fcn.004104d0
mov eax, dword [edi]
push eax
call fcn.0040de00
push 0x445654
call fcn.00409780
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.004113d2
add esp, 0x10
test eax, eax
je 0x40d419
push 0x44564c
call fcn.00409780
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call fcn.0042da69
mov edx, dword [ebp - 0x18]
push 0
push 0
push edx
call fcn.00434633
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
call fcn.0042d71a
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x16
call fcn.00410494
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x15
call fcn.0042d71a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x13
call fcn.0042d71a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042d71a
push 0x96
mov ecx, ebx
mov dword [ebx + 0x5c], 0xa
call fcn.0040c600
mov eax, dword [ebx + 0x1c]
push 0
push 0x1f4
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40d4d5
mov dword [ebx + 0x5c], 0xb
jmp 0x40d4d5
mov ecx, dword [ebx + 0x1c]
push 0x70
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040c0a0
push edi
push 0x31
push eax
call fcn.00434633
cmp eax, 1
jne 0x40d4bd
push 8
call fcn.0040d6e0
add esp, 4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc8]
jmp 0x40d4d5
push str.Invalid_state_
mov ecx, ebx
call fcn.0040d530
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042d71a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret