Function at 0x408370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e7c
call fcn.0040f0e0
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x420474], 0
push ebx
push esi
push edi
mov bl, cl
je 0x4083aa
mov eax, dword [0x413974]
push 0
push 0
push 0x8009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test bl, bl
jne 0x4083de
push 0x413cb4
call fcn.00401810
mov esi, eax
push esi
push 0
push str.IDCornice
push str.ImpostazioniMDI
call fcn.0040ee60
push esi
push 0
push 0
push str.ImpostazioniMDI
call fcn.0040ee60
add esp, 0x24
push 0x413130
call fcn.0040ee00
push 0x413148
call fcn.0040ee00
mov eax, dword [0x42018c]
add esp, 8
test eax, eax
je 0x408405
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x420464]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x408417
push eax
call esi
mov eax, dword [0x413cb0]
test eax, eax
je 0x408423
push eax
call esi
test bl, bl
jne 0x408436
mov ecx, dword [0x420460]
push ecx
call fcn.00403cb0
add esp, 4
mov esi, dword [sym.imp.GDI32.dll_RemoveFontResourceA]
push 0x4140b4
call esi
push 0x4144b4
call esi
push 0x4148b4
call esi
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [sym.imp.MSVCR100.dll__unlink]
push 0x4140b4
call esi
push 0x4144b4
call esi
push 0x4148b4
call esi
add esp, 0xc
call fcn.004031d0
cmp byte [0x4201a0], 0
je 0x408c2f
cmp byte [0x4201a2], 0
je 0x408c2f
push 0x103
lea edx, [ebp - 0x15b]
push 0
push edx
mov byte [ebp - 0x15c], 0
call sub.MSVCR100.dll_memset
push 0x103
lea eax, [ebp - 0x25f]
push 0
push eax
mov byte [ebp - 0x260], 0
call sub.MSVCR100.dll_memset
push 0xfff
lea ecx, [ebp - 0x1563]
push 0
push ecx
mov byte [ebp - 0x1564], 0
call sub.MSVCR100.dll_memset
push str._token
push 0x41316c
mov byte [ebp - 0x1968], 0
call dword [sym.imp.MSVCR100.dll_strstr]
mov ebx, eax
add esp, 0x2c
test ebx, ebx
je 0x40862e
cmp byte [0x4202ae], 0
je 0x40861a
cmp byte [0x42022e], 0
je 0x40861a
cmp byte [0x4201ae], 0
je 0x40861a
cmp byte [0x42032e], 0
je 0x40861a
lea edx, [ebp - 0x1e6c]
push edx
push 0x4201ae
push 0x42022e
push 0x4202ae
lea edx, [ebp - 0x1968]
mov ecx, 0x42032e
call fcn.004070c0
add esp, 0x10
test al, al
je 0x408648
add ebx, 7
mov esi, ebx
sub esi, 0x41316c
push esi
lea ecx, [ebp - 0x1564]
mov eax, 0x20
push 0x41316c
push ecx
mov word [ebp - 0x1564], ax
call dword [sym.imp.MSVCR100.dll_strncat]
lea eax, [ebp - 0x1e6c]
mov byte [ebp + esi - 0x1563], 0
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085b3
lea edi, [ebp - 0x1564]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4085c3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x20
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x408648
mov edx, eax
jmp 0x4085f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085f0
lea edi, [ebp - 0x1564]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408600
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x408648
mov ecx, 0x12
mov esi, str.Indirizzo_Server_live_e_o_Dominio_e_o_Utente_e_o_Password_non_impostati
lea edi, [ebp - 0x1968]
rep movsd dword es:[edi], dword [esi]
jmp 0x408648
push 0x41316c
lea edx, [ebp - 0x1564]
push 0x4110c8
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
cmp byte [ebp - 0x1968], 0
jne 0x408c17
cmp dword [0x415e70], 0
lea eax, [ebp - 0x1564]
je 0x4087f2
mov edi, dword [sym.imp.MSVCR100.dll_strstr]
push str.__autologin
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4086a5
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x4086a2
inc eax
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408696
jmp 0x4086a5
mov byte [esi], 0
lea ecx, [ebp - 0x1564]
push str._login
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4086df
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x4086dc
inc eax
mov edx, esi
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4086d0
jmp 0x4086df
mov byte [esi], 0
lea edx, [ebp - 0x1564]
push str._password
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x408716
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x408713
inc eax
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408707
jmp 0x408716
mov byte [esi], 0
lea eax, [ebp - 0x1564]
push str._passwordc
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x40874f
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x40874c
inc eax
mov edx, esi
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408740
jmp 0x40874f
mov byte [esi], 0
lea edi, [ebp - 0x1564]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408756
mov ecx, 5
mov esi, str.___autologin1__login
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x41f034
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408774
lea edi, [ebp - 0x1564]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408784
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x1564]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4087a3
mov ecx, dword [str.__passwordc]
mov edx, dword [0x411080]
mov dword [eax], ecx
mov ecx, dword [0x411084]
mov dword [eax + 4], edx
mov dl, byte [0x411088]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, 0x41f234
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087d5
lea edi, [ebp - 0x1564]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4087e5
jmp 0x408888
push str._password
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x408898
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x40882e
inc eax
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408822
jmp 0x408831
mov byte [esi], 0
lea eax, [ebp - 0x1564]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408838
mov ecx, dword [str.__passwordc]
mov edx, dword [0x411080]
mov dword [eax], ecx
mov ecx, dword [0x411084]
mov dword [eax + 4], edx
mov dl, byte [0x411088]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, 0x41f234
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408870
lea edi, [ebp - 0x1564]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408880
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [0x4201ac], 0
je 0x408a78
cmp byte [0x4201ae], 0
je 0x408a78
cmp byte [0x4203ae], 0
je 0x408a78
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push 0x4201ae
lea eax, [ebp - 0x58]
push str.__k_s:
push eax
call edi
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x1564]
push edx
call fcn.00404150
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40890f
inc esi
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x40890c
inc eax
sub esi, eax
mov edi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x408900
jmp 0x40890f
mov byte [esi], 0
lea eax, [ebp - 0x1564]
push str.__k
push eax
call fcn.00404150
mov esi, eax
add esp, 8
test esi, esi
je 0x40894f
inc esi
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x40894c
inc eax
sub esi, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x408940
jmp 0x40894f
mov byte [esi], 0
push 0x4201ae
lea ecx, [ebp - 0x58]
push str.__kc_s:
push ecx
call edi
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x1564]
push eax
call fcn.00404150
mov esi, eax
add esp, 0x14
test esi, esi
je 0x408997
inc esi
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x408994
inc eax
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x408988
jmp 0x408997
mov byte [esi], 0
lea ecx, [ebp - 0x1564]
push str.__kc
push ecx
call fcn.00404150
mov esi, eax
add esp, 8
test esi, esi
je 0x4089d0
inc esi
push 0x20
push esi
call ebx
add esp, 8
test eax, eax
je 0x4089cd
inc eax
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4089c1
jmp 0x4089d0
mov byte [esi], 0
lea eax, [ebp - 0x1564]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4089d7
mov edx, dword [str.__kc]
mov cx, word [0x411060]
mov dword [eax], edx
mov word [eax + 4], cx
mov eax, 0x4201ae
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408a00
lea edi, [ebp - 0x1564]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408a12
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1564]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408a30
mov dx, word [0x411058]
mov eax, 0x4203ae
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a50
lea edi, [ebp - 0x1564]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408a60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x413168], 1
jne 0x408adf
lea edi, [ebp - 0x1564]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408a88
mov ecx, 6
mov esi, str.__riconnessioneautomatica
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xa
lea eax, [ebp - 0x3c]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.MSVCR100.dll__ltoa]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ab7
lea edi, [ebp - 0x1564]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ac7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
xor edi, edi
lea ecx, [ebp - 0x364]
push edi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x364]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1a68]
push eax
lea ecx, [ebp - 0x564]
push ecx
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x1e70]
push eax
lea ecx, [ebp - 0x364]
push ecx
call dword [sym.imp.MSVCR100.dll__splitpath]
lea edx, [ebp - 0x564]
push edx
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x1e70]
push ecx
lea edx, [ebp - 0x15c]
push str._s_s_s.exe
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov ebx, dword [sym.imp.MSVCR100.dll_strstr]
lea eax, [ebp - 0x1564]
push str._aggvecchioexe
push eax
call ebx
mov esi, eax
add esp, 0x30
cmp esi, edi
je 0x408b97
push 0x41101c
push esi
call ebx
add esp, 8
cmp eax, edi
je 0x408b94
inc eax
sub esi, eax
mov cl, byte [eax]
mov byte [eax + esi], cl
inc eax
test cl, cl
jne 0x408b88
jmp 0x408b97
mov byte [esi], 0
mov eax, dword [0x4201a4]
cmp eax, edi
je 0x408bc0
push 0x3e8
push eax
call fcn.0040ed30
mov ecx, dword [0x4201a4]
push ecx
call fcn.0040edb0
add esp, 0xc
mov dword [0x4201a4], edi
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x260]
push 0x41067c
push eax
mov byte [0x4201a2], 0
call dword [sym.imp.MSVCR100.dll_sprintf]
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x1e7c]
mov dword [ebp - 0x1e7c], ecx
push eax
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x1564]
push ecx
mov dword [ebp - 0x1e78], edx
mov dword [ebp - 0x1e74], edi
call dword [sym.imp.MSVCR100.dll__execv]
add esp, 0x14
jmp 0x408c2f
push 0
push str.MxDesk:_errore_in_riconnessione
lea edx, [ebp - 0x1968]
push edx
push 0
call fcn.0040ebe0
add esp, 0x10
mov eax, dword [0x41fd58]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
cmp eax, edi
je 0x408c49
push eax
call esi
mov dword [0x41fd58], edi
mov eax, dword [0x41e4f8]
cmp eax, edi
je 0x408c5b
push eax
call esi
mov dword [0x41e4f8], edi
mov eax, dword [0x420468]
cmp eax, edi
je 0x408c73
push eax
call fcn.00403170
add esp, 4
mov dword [0x420468], edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_exit]
int3