Function at 0x40e3e0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push 1
xor bl, bl
call sub.rtdb2sdm.dll_AttachServerDm
add esp, 4
test eax, eax
mov dword [0x565cd0], eax
jne 0x40e40c
push str.Fallito_attach_server_dati_macchina_n_r
call fcn.00410cf0
add esp, 4
push 1
call dword [sym.imp.MSVCR80.dll_exit]
push esi
push edi
push 0x565dc0
push 0
push str.LogFile
push eax
call sub.rtdb2sdm.dll_GetDirData
add esp, 0x10
test eax, eax
jge 0x40e43b
mov ecx, 6
mov esi, str.C:_wnc_home_d_xnc_logfile_
mov edi, 0x565dc0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0x565cd0]
push 0x568840
push 0
push str.DatiMacc
push eax
call sub.rtdb2sdm.dll_GetDirData
add esp, 0x10
test eax, eax
jge 0x40e49d
mov ecx, dword [str.C:_wnc_home_d_xnc_dati_]
mov edx, dword [0x52f488]
mov eax, dword [0x52f48c]
mov dword [0x568840], ecx
mov ecx, dword [0x52f490]
mov dword [0x568844], edx
mov edx, dword [0x52f494]
mov dword [0x568848], eax
mov eax, dword [0x52f498]
mov dword [0x56884c], ecx
mov dword [0x568850], edx
mov dword [0x568854], eax
mov eax, 0x565dc0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e4a5
sub eax, edx
add eax, 0xfffffffe
test eax, eax
jle 0x40e4d7
mov cl, 0x5c
lea esp, [esp]
test bl, bl
jne 0x40e4d7
cmp byte [eax + 0x565dc0], cl
jne 0x40e4d0
mov bl, 1
jmp 0x40e4d3
sub eax, 1
test eax, eax
jg 0x40e4c0
push eax
push 0x565dc0
push 0x5668e0
call dword [sym.imp.MSVCR80.dll_strncpy]
push 0x5668e0
push str._shardcopy_
push 0x5668e0
call dword [sym.imp.MSVCR80.dll_sprintf]
mov ecx, dword [0x565cd0]
push 0x566760
push 0
push str.IconCni
push ecx
call sub.rtdb2sdm.dll_GetDirData
add esp, 0x28
test eax, eax
jge 0x40e530
mov ecx, 6
mov esi, str.C:_wnc_home_d_xnc_iconcni_
mov edi, 0x566760
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [0x565cd0]
push 5
push edx
call sub.rtdb2sdm.dll_SetVarType
mov eax, dword [0x565cd0]
push eax
call sub.Serax32Dll.dll_Ordinal_100
add esp, 0xc
test eax, eax
je 0x40e57e
push str.Fallito_attach_shared_memory_assi_n_r
call fcn.00410cf0
push str.Fallisce_ShaxAttachClnt__d
call dword [sym.imp.XLIB.dll_Ordinal_719]
push 0
push 0x18
push 0x525c40
call sub.WerrtxDll.dll_Ordinal_12
add esp, 0x14
push 1
call dword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x562e90], 0
jne 0x40e591
mov dword [0x562e90], 8
mov edx, dword [0x565cd0]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], 0
call sub.rtdb2sdm.dll_GetActivePwdLevel
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, dword [0x568a3c]
jge 0x40e5dc
push str.Livello_password_insufficiente_n_r
call fcn.00410cf0
push 0
push 0x19
push 0x525c40
call sub.WerrtxDll.dll_Ordinal_12
add esp, 0x10
push 1
call dword [sym.imp.MSVCR80.dll_exit]
mov ecx, dword [0x565cd0]
push str.Linee_
push ecx
call sub.rtdb2sdm.dll_GetGenericItem
add esp, 8
cmp eax, 0x10
jle 0x40e5fc
mov eax, 0x10
jmp 0x40e605
test eax, eax
jg 0x40e605
mov eax, 1
push eax
call fcn.0040dcd0
call fcn.0040d330
call fcn.0040cf50
mov esi, dword [sym.imp.MSVCR80.dll_calloc]
push 4
push 1
call esi
add esp, 0xc
test eax, eax
mov dword [0x566a54], eax
jne 0x40e650
push str.Memoria_insufficiente_per_buffer_grandezze_ascissa_n_r
call fcn.00410cf0
push 0
push 0x64
push 0x525c40
call sub.WerrtxDll.dll_Ordinal_12
add esp, 0x10
push 0xa
call dword [sym.imp.MSVCR80.dll_exit]
mov edx, dword [0x565cd8]
push str.Tempo
push edx
call fcn.0041d330
push eax
call fcn.0046cad0
mov ecx, dword [0x566a54]
push 4
push 0x25
mov dword [ecx], eax
call esi
add esp, 0x14
test eax, eax
mov dword [0x568944], eax
jne 0x40e6a4
push str.Memoria_insufficiente_per_buffer_grandezze_ordinata_n_r
call fcn.00410cf0
push 0
push 0x64
push 0x525c40
call sub.WerrtxDll.dll_Ordinal_12
add esp, 0x10
push 0xb
call dword [sym.imp.MSVCR80.dll_exit]
xor edi, edi
mov esi, 0x5416bc
jmp 0x40e6b0
mov edx, dword [esi]
mov eax, dword [0x565cd8]
push edx
push eax
call fcn.0041d330
push eax
call fcn.0046cad0
mov ecx, dword [0x568944]
mov dword [edi + ecx], eax
add esi, 8
add esp, 0xc
add edi, 4
cmp esi, 0x5417e4
jl 0x40e6b0
mov edx, dword [0x565cd8]
push str.Ch._A
push edx
call fcn.0041d330
mov esi, dword [sym.imp.MSVCR80.dll__strdup]
push eax
call esi
mov dword [0x565f20], eax
mov eax, dword [0x565cd8]
push str.Ch._B
push eax
call fcn.0041d330
push eax
call esi
mov ecx, dword [0x565cd8]
push str.Ch._C
push ecx
mov dword [0x565f24], eax
call fcn.0041d330
push eax
call esi
mov edx, dword [0x565cd8]
push str.Ch._D
push edx
mov dword [0x565f28], eax
call fcn.0041d330
push eax
call esi
mov dword [0x565f2c], eax
mov eax, dword [0x565cd8]
push str.Ch._E
push eax
call fcn.0041d330
push eax
call esi
mov ecx, dword [0x565cd8]
push str.Ch._F
push ecx
mov dword [0x565f30], eax
call fcn.0041d330
add esp, 0x44
push eax
call esi
mov edx, dword [0x565cd8]
push str.Ch._G
push edx
mov dword [0x565f34], eax
call fcn.0041d330
push eax
call esi
mov dword [0x565f38], eax
mov eax, dword [0x565cd8]
push str.Ch._H
push eax
call fcn.0041d330
push eax
call esi
mov ecx, dword [0x565cd8]
push str.Asse
push ecx
mov dword [0x565f3c], eax
call fcn.0041d330
push eax
call esi
mov edx, dword [0x565cd8]
push str.GrandAsc
push edx
mov dword [0x566a60], eax
call fcn.0041d330
push eax
call esi
mov dword [0x566a64], eax
mov eax, dword [0x565cd8]
push str.GrandOrd
push eax
call fcn.0041d330
push eax
call esi
add esp, 0x40
mov dword [0x566a68], eax
push str.Param
mov ecx, dword [0x565cd8]
push ecx
call fcn.0041d330
push eax
call esi
mov edx, dword [0x565cd8]
push str.TipoPar
push edx
mov dword [0x566a6c], eax
call fcn.0041d330
push eax
call esi
add esp, 0x18
mov dword [0x566a70], eax
call fcn.0041dbf0
pop edi
pop esi
pop ebx
pop ecx
ret