Function at 0x40d9b0
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.0040e4c0
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.0040e560
push 0x4144b4
push 0x143
push edi
call fcn.0040e560
push 0x4148b4
push 0x144
push edi
call fcn.0040e560
mov ebx, dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0x4140b4
call ebx
push 0x4144b4
call ebx
push 0x4148b4
call ebx
call fcn.00403460
push 0x420430
call fcn.0040e3f0
push 0x413148
call fcn.0040e3f0
push esi
push str.__hwndpadre
call fcn.0040dee0
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 0x40db40
mov dword [0x41396c], edi
call fcn.00403a10
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 0x40dbee
lea ecx, [esi + 0x19]
push ecx
mov byte [0x42046e], 1
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
cmp esi, 0x41316c
jbe 0x40db97
cmp byte [esi - 1], 0x20
jne 0x40db97
mov byte [esi - 1], bl
jmp 0x40db99
mov byte [esi], bl
cmp eax, ebx
je 0x40dbee
push eax
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40dbee
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 0x40dbec
push 0
push str.MxDesk:_errore_in_riconnessione
push str.Impossibile_riconnettersi:_Client_ancora_in_esecuzione
push 0
call fcn.0040e1e0
add esp, 0x10
push 0
mov cl, 1
call fcn.00407ea0
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 0x40dc60
lea ecx, [ebp - 0x450]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x413cb0], eax
call fcn.0040a640
cmp dword [0x420464], ebx
jne 0x40dca1
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], 0x40cc10
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.00408cc0
add esp, 8
call fcn.0040dec0
test al, al
je 0x40ddff
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 0x40deb7
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 0x40de4b
mov edx, dword [0x420678]
lea ecx, [ebp - 0x46c]
push ecx
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40de9f
mov eax, dword [0x41399c]
cmp eax, ebx
je 0x40de61
lea ecx, [ebp - 0x46c]
push ecx
call eax
test eax, eax
jne 0x40de9f
mov eax, dword [0x4139a0]
cmp eax, ebx
je 0x40de77
lea edx, [ebp - 0x46c]
push edx
call eax
test eax, eax
jne 0x40de9f
mov eax, dword [0x4139a4]
cmp eax, ebx
je 0x40de8d
lea ecx, [ebp - 0x46c]
push ecx
call eax
test eax, eax
jne 0x40de9f
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 0x40de23
push ebx
xor cl, cl
call fcn.00407ea0
int3