Function at 0x414ee0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x746c
call fcn.0041e190
mov dl, byte [0x42a800]
push ebx
push ebp
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x447d]
mov byte [esp + 0x447c], dl
mov byte [esp + 0x2094], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x2095]
push 0x1000
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1098]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414f51
mov byte [esp + 0x94], al
mov byte [esp + 0x547c], al
jmp 0x414fbc
lea ecx, [esp + 0x647c]
push 0x1000
lea edx, [esp + 0x1098]
push ecx
push edx
call fcn.00414ba0
add esp, 0xc
test al, al
je 0x414f8f
lea eax, [esp + 0x647c]
push 0x1000
lea ecx, [esp + 0x1098]
push eax
push ecx
call fcn.00411fe0
add esp, 0xc
lea edx, [esp + 0x1094]
lea eax, [esp + 0x547c]
push edx
push eax
call fcn.004124b0
lea ecx, [esp + 0x109c]
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.004124f0
add esp, 0x10
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 6
lea eax, [esp + 0x98]
push str.MDCMax
push eax
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0xc
test eax, eax
jne 0x41518d
lea ecx, [esp + 0x547c]
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.004124f0
add esp, 8
lea edx, [esp + 0x447c]
mov edi, str.CfgMDCMax.INI
or ecx, 0xffffffff
xor eax, eax
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]
mov al, byte [esp + 0x94]
test al, al
je 0x41506a
mov al, byte [esp + 0x447c]
test al, al
jne 0x415079
mov edi, str.CfgCIMCO.INI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x447c]
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]
mov al, byte [esp + 0x447c]
test al, al
je 0x4159cf
lea ecx, [esp + 0x447c]
lea edx, [esp + 0x547c]
push ecx
push edx
lea eax, [esp + 0x209c]
push 0x424fe8
push eax
call ebx
add esp, 0x10
push str.Shell32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [esp + 0x7480]
mov esi, eax
mov al, byte [esp + 0x94]
test al, al
mov byte [ebp], 0
je 0x415166
test esi, esi
je 0x415166
push str.SHGetSpecialFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4150e3
push 1
push 0x1a
push ebp
push 0
call eax
push str.CIMCO_A_S
lea ecx, [esp + 0x4098]
push 0x425c04
push ecx
call ebx
lea edx, [esp + 0x40a0]
push str._:____
push edx
call fcn.00412560
mov al, byte [ebp]
add esp, 0x14
test al, al
je 0x41515f
lea eax, [esp + 0x94]
lea ecx, [esp + 0x4094]
push eax
push ecx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push str._s_s
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
push ecx
call ebx
push ebp
call fcn.004148c0
add esp, 0x14
test al, al
jne 0x41514f
push ebp
call fcn.00414930
add esp, 4
push ebp
call fcn.004148c0
add esp, 4
test al, al
jne 0x41515f
mov byte [ebp], al
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp]
test al, al
je 0x415440
mov cl, byte [esp + 0x7484]
test cl, cl
je 0x41543c
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x746c
ret
push 8
lea ecx, [esp + 0x98]
push str.DNCAdmin
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x4151ce
lea edx, [esp + 0x547c]
lea eax, [esp + 0x94]
push edx
push eax
call fcn.004124f0
add esp, 8
lea edx, [esp + 0x447c]
mov edi, str.CfgDNCAdm.INI
jmp 0x41500e
lea ecx, [esp + 0x94]
push str.CIMCOEdit.exe
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4151fd
push 7
lea edx, [esp + 0x98]
push str.CIMCOEdit_d
push edx
call ebx
add esp, 0xc
jmp 0x41502b
lea eax, [esp + 0x94]
push str.DLoGEdit.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x41522c
push 7
lea ecx, [esp + 0x98]
push str.DLoG_proNCE__d
push ecx
call ebx
add esp, 0xc
jmp 0x41502b
lea edx, [esp + 0x94]
push str.SuperdraftEdit.exe
push edx
call edi
add esp, 8
test eax, eax
jne 0x41525b
push 7
lea eax, [esp + 0x98]
push str.Superdraft_Edit__d
push eax
call ebx
add esp, 0xc
jmp 0x41502b
lea ecx, [esp + 0x94]
push str.ZKEdit.exe
push ecx
call edi
add esp, 8
test eax, eax
jne 0x41528a
push 7
lea edx, [esp + 0x98]
push str.ZimmerKreim_Edit__d
push edx
call ebx
add esp, 0xc
jmp 0x41502b
lea eax, [esp + 0x94]
push str.RMSEdit.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x4152b9
push 7
lea ecx, [esp + 0x98]
push str.RMSEdit__d
push ecx
call ebx
add esp, 0xc
jmp 0x41502b
lea edx, [esp + 0x94]
push str.GTANG.exe
push edx
call edi
add esp, 8
test eax, eax
jne 0x4152e8
push 7
lea eax, [esp + 0x98]
push str.GTANG__d
push eax
call ebx
add esp, 0xc
jmp 0x41502b
lea ecx, [esp + 0x94]
push str.StarNCAssistant.exe
push ecx
call edi
add esp, 8
test eax, eax
jne 0x415317
push 7
lea edx, [esp + 0x98]
push str.Star_NC_Assistant__d
push edx
call ebx
add esp, 0xc
jmp 0x41502b
lea eax, [esp + 0x94]
push str.DPEdit.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x415346
push 7
lea ecx, [esp + 0x98]
push str.Delcam_PowerEdit__d
push ecx
call ebx
add esp, 0xc
jmp 0x41502b
lea edx, [esp + 0x94]
push str.P4PEdit.exe
push edx
call edi
add esp, 8
test eax, eax
jne 0x415375
push 7
lea eax, [esp + 0x98]
push str.P4P_Edit__d
push eax
call ebx
add esp, 0xc
jmp 0x41502b
lea ecx, [esp + 0x94]
push str.DCAMEdit.exe
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4153a4
push 7
lea edx, [esp + 0x98]
push str.DCAM_Edit__d
push edx
call ebx
add esp, 0xc
jmp 0x41502b
lea eax, [esp + 0x94]
push str.HSMWorksEdit.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x4153d3
push 7
lea ecx, [esp + 0x98]
push str.HSMWorks_Edit__d
push ecx
call ebx
add esp, 0xc
jmp 0x41502b
lea edx, [esp + 0x94]
push str.SolidCAMEdit.exe
push edx
call edi
add esp, 8
test eax, eax
jne 0x415402
push 7
lea eax, [esp + 0x98]
push str.SolidCAM_Edit__d
push eax
call ebx
add esp, 0xc
jmp 0x41502b
lea ecx, [esp + 0x94]
push str.Editwell2005.exe
push ecx
call edi
add esp, 8
test eax, eax
jne 0x41542f
lea edx, [esp + 0x94]
push str.Editwell_2005
push edx
call ebx
add esp, 8
jmp 0x41502b
mov byte [esp + 0x94], 0
jmp 0x41506a
test al, al
jne 0x415454
push ebp
call fcn.00414e90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x746c
ret
lea edx, [esp + 0x2094]
lea eax, [esp + 0x1094]
push edx
push 0x1000
push eax
push 0x424964
push str.USERCFG
push str.INIFILEVERSION
call fcn.00416d50
add esp, 0x18
lea ecx, [esp + 0x1094]
push 0x424960
push ecx
call fcn.00412070
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 4
push eax
call esi
add esp, 8
test eax, eax
je 0x4156e8
lea edx, [esp + 0x1094]
push 0x42495c
push edx
call esi
add esp, 8
test eax, eax
je 0x4156e8
lea eax, [esp + 0x2094]
mov byte [esp + 0x13], 1
push eax
call fcn.004148e0
add esp, 4
test al, al
jne 0x415537
lea ecx, [esp + 0x2094]
lea edx, [esp + 0x1094]
push ecx
push edx
call fcn.004124b0
lea eax, [esp + 0x109c]
push eax
call fcn.00414930
mov ecx, 0x1e
mov esi, str._r_n_INIFILEVERSION__r_n_r_n_INIFILEVERSION__r_nVERSION_t_t_200_r_n
lea edi, [esp + 0x28]
push 0x425270
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x20a4]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x41563d
lea edx, [esp + 0x1c]
jmp 0x41568f
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
lea edx, [esp + 0x20a8]
push closesocket
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41563d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jbe 0x415658
lea eax, [ebp + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0
push ecx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41563d
cmp dword [esp + 0x14], ebp
jne 0x41563d
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x20a8]
push 0x40000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x41560b
lea eax, [esp + 0x2094]
push 0
push eax
call fcn.004171b0
add esp, 8
lea ecx, [esp + 0x2094]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41563d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push 0
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41562e
cmp dword [esp + 0x18], ebp
jne 0x41562e
mov byte [esp + 0x13], 0
push esi
call ebx
mov al, byte [esp + 0x13]
test al, al
je 0x4156cd
mov eax, dword [esp + 0x7480]
push eax
call fcn.00412330
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x746c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1e
mov esi, str._r_n_INIFILEVERSION__r_n_r_n_INIFILEVERSION__r_nVERSION_t_t_200_r_n
lea edi, [esp + 0x1c]
push 0x425270
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2098]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41563d
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [esp + 0x20a0]
push eax
call fcn.004148e0
add esp, 0x10
test al, al
je 0x41563d
lea ecx, [esp + 0x2094]
push 0
push ecx
call fcn.00414e00
add esp, 8
cmp eax, 0xa
jbe 0x41563d
mov ecx, dword [esp + 0x7480]
push ecx
call fcn.00414e90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x746c
ret
lea edx, [esp + 0x2094]
lea eax, [esp + 0x1094]
push edx
push 0x1000
push eax
push 0x42a800
push str.PATHCFG
push str.INIFILEVERSION
call fcn.00416d50
lea ecx, [esp + 0x20ac]
push 1
lea edx, [esp + 0x10b0]
push ecx
push edx
push str.PATHCFG
push str.INIFILEVERSION
call fcn.00415d30
mov al, byte [esp + 0x10c0]
add esp, 0x2c
test al, al
mov byte [esp + 0x13], 0
je 0x41563d
lea eax, [esp + 0x447c]
lea ecx, [esp + 0x94]
push eax
lea edx, [esp + 0x1098]
push ecx
push edx
lea eax, [esp + 0x30a0]
push str._s_s_s
push eax
call ebx
lea ecx, [esp + 0x30a8]
push ecx
call fcn.004148e0
add esp, 0x18
test al, al
jne 0x4157df
lea edx, [esp + 0x3094]
lea eax, [esp + 0x1094]
push edx
push eax
call fcn.004124b0
lea ecx, [esp + 0x109c]
push ecx
call fcn.00414930
mov ecx, 0x1e
mov esi, str._r_n_INIFILEVERSION__r_n_r_n_INIFILEVERSION__r_nVERSION_t_t_200_r_n
lea edi, [esp + 0x28]
lea edx, [esp + 0x30a0]
push 0x425270
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x41563d
lea eax, [esp + 0x1c]
jmp 0x415988
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
lea eax, [esp + 0x30a8]
push closesocket
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41563d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jbe 0x41594d
lea ecx, [ebp + 2]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x14], eax
push 0
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41563d
cmp dword [esp + 0x18], ebp
jne 0x41563d
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x30a8]
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4158b7
lea ecx, [esp + 0x3094]
push 0
push ecx
call fcn.004171b0
add esp, 8
lea edx, [esp + 0x3094]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41563d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4158da
cmp dword [esp + 0x14], ebp
jne 0x4158da
mov byte [esp + 0x13], 1
push esi
call ebx
mov al, byte [esp + 0x13]
test al, al
je 0x41563d
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x1094]
push eax
push ecx
lea edx, [esp + 0x309c]
push 0x424fe8
push edx
call ebx
lea edi, [esp + 0x30a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x7490]
mov eax, ecx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00412330
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x746c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1e
mov esi, str._r_n_INIFILEVERSION__r_n_r_n_INIFILEVERSION__r_nVERSION_t_t_200_r_n
lea edi, [esp + 0x1c]
lea edx, [esp + 0x3094]
push 0x425270
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41563d
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0x30a0]
push ecx
call fcn.004148e0
add esp, 0x10
test al, al
je 0x41563d
lea edx, [esp + 0x3094]
push 0
push edx
call fcn.00414e00
add esp, 8
cmp eax, 0xa
jbe 0x41563d
jmp 0x4158ef
lea edi, [esp + 0x547c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x7480]
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x746c
ret