Function at 0x40e3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xd300
push 0
push 0x413130
call sub.MSVCR100.dll_memset
push 0x41fd54
push 0x41fd50
or eax, 0xffffffff
push 0x41fd4c
push str.comctl32.dll
mov dword [0x41ff6c], eax
mov dword [0x41ff80], eax
call fcn.0040eec0
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.MSVCR100.dll__getpid]
push str.TTMONO_.TTF
call ebx
push eax
lea ecx, [ebp - 0x404]
push ecx
push str._sMx_d__s
push 0x4140b4
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
push str.TTPROP_.TTF
call ebx
push eax
lea edx, [ebp - 0x404]
push edx
push str._sMx_d__s
push 0x4144b4
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
push str.TTBOLD_.TTF
call ebx
push eax
lea eax, [ebp - 0x404]
push eax
push str._sMx_d__s
push 0x4148b4
call dword [sym.imp.MSVCR100.dll_sprintf]
mov ebx, dword [sym.imp.GDI32.dll_RemoveFontResourceA]
add esp, 0x14
push 0x4140b4
call ebx
push 0x4144b4
call ebx
push 0x4148b4
call ebx
mov ebx, dword [sym.imp.MSVCR100.dll__unlink]
push 0x4140b4
call ebx
push 0x4144b4
call ebx
push 0x4148b4
call ebx
add esp, 0xc
push 0x4140b4
push 0x13e
push edi
call fcn.0040ef60
push 0x4144b4
push 0x143
push edi
call fcn.0040ef60
push 0x4148b4
push 0x144
push edi
call fcn.0040ef60
mov ebx, dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0x4140b4
call ebx
push 0x4144b4
call ebx
push 0x4148b4
call ebx
call fcn.004031c0
push 0x420430
call fcn.0040edf0
push 0x413148
call fcn.0040edf0
push esi
push str.__hwndpadre
call fcn.0040e8f0
mov eax, 0x41316c
add esp, 0x10
sub eax, esi
lea esp, [esp]
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x40e550
mov dword [0x41396c], edi
call fcn.00403770
push str._riconnessioneautomatica
push 0x41316c
call dword [sym.imp.MSVCR100.dll_strstr]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x40e5fe
lea ecx, [esi + 0x19]
push ecx
mov byte [0x42046e], 1
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
cmp esi, 0x41316c
jbe 0x40e5a7
cmp byte [esi - 1], 0x20
jne 0x40e5a7
mov byte [esi - 1], bl
jmp 0x40e5a9
mov byte [esi], bl
cmp eax, ebx
je 0x40e5fe
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40e5fe
push 0xdac
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x102
jne 0x40e5fc
push 0
push str.MxDesk:_errore_in_riconnessione
push str.Impossibile_riconnettersi:_Client_ancora_in_esecuzione
push 0
call fcn.0040ebe0
add esp, 0x10
push 0
mov cl, 1
call fcn.00408370
xor ebx, ebx
push 0x413cb4
call fcn.00401810
push eax
push 1
push str.GestioneRiconnessione
push 0x420478
call fcn.004019b0
test eax, eax
setne dl
mov byte [0x4201a0], dl
call fcn.00401ab0
push 0x413cb4
mov esi, eax
call fcn.00401810
push eax
push 0xff
push 0x413bb0
push str.Arial
push str.FontTitoloSessione
push esi
call fcn.00401980
push 0x3c
lea eax, [ebp - 0x450]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x3c
mov dword [ebp - 0x450], 0xfffffff4
xor eax, eax
nop
mov cl, byte [eax + 0x413bb0]
mov byte [ebp + eax - 0x434], cl
inc eax
test cl, cl
jne 0x40e670
lea ecx, [ebp - 0x450]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x413cb0], eax
call fcn.0040aca0
cmp dword [0x420464], ebx
jne 0x40e6b1
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [0x420464], eax
mov edx, dword [0x41396c]
push 0x141
push edx
mov dword [ebp - 0x494], ebx
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x480], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x47c], eax
mov eax, dword [0x420464]
lea ecx, [ebp - 0x494]
push ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x470], str.MxDesk4MDI
mov dword [ebp - 0x490], 0x40d620
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edx, dword [0x41396c]
push ebx
push edx
push ebx
push ebx
push 0x1e0
push 0x280
push ebx
push ebx
push 0x6cf0000
push str.MeXal
push str.MxDesk4MDI
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 1
push 0x41316c
mov dword [0x413970], eax
call fcn.00409190
add esp, 8
call fcn.0040e8d0
test al, al
je 0x40e80f
mov eax, dword [0x413970]
push 0x46000000
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x420190]
mov edx, dword [0x413970]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [0x420190]
mov dword [0x420194], eax
lea eax, [ebp - 0x414]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x408]
sub edx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x40c]
sub eax, dword [ebp - 0x414]
mov ecx, dword [0x413970]
push 0x30
push edx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x413970]
mov eax, dword [0x420190]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push edx
push ebx
push 0x7ea
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x420190]
push eax
push ebx
push 0x7ec
push ecx
call esi
push ebx
push ebx
push ebx
lea edx, [ebp - 0x46c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40e8c7
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x420678]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e85b
mov edx, dword [0x420678]
lea ecx, [ebp - 0x46c]
push ecx
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40e8af
mov eax, dword [0x41399c]
cmp eax, ebx
je 0x40e871
lea ecx, [ebp - 0x46c]
push ecx
call eax
test eax, eax
jne 0x40e8af
mov eax, dword [0x4139a0]
cmp eax, ebx
je 0x40e887
lea edx, [ebp - 0x46c]
push edx
call eax
test eax, eax
jne 0x40e8af
mov eax, dword [0x4139a4]
cmp eax, ebx
je 0x40e89d
lea ecx, [ebp - 0x46c]
push ecx
call eax
test eax, eax
jne 0x40e8af
lea edx, [ebp - 0x46c]
push edx
call esi
lea eax, [ebp - 0x46c]
push eax
call edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x46c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40e833
push ebx
xor cl, cl
call fcn.00408370
int3