Function at 0x11109ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e4b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x5cc
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x5d0], esi
call fcn.11107ef0
mov ecx, dword [esi + 0x18]
xor edi, edi
push edi
push edi
push str.PageSize
push 0x11218754
mov dword [ebp - 4], edi
mov dword [esi], vtable.NSMJournalFileArabicPDF.0
call fcn.110bbc00
mov ebx, eax
cmp ebx, edi
jne 0x11109db7
push 0x54
lea edx, [ebp - 0x5c8]
push edi
push edx
lea ebx, [edi + 1]
call sub.MSVCR100.dll_memset
mov ecx, dword [0x1127d368]
mov dword [ebp - 0x5c8], 0x54
mov dword [ebp - 0x5b8], 0x480
mov dword [ebp - 0x5cc], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
add esp, 0xc
lea edx, [ebp - 0x5cc]
push edx
call eax
lea ecx, [ebp - 0x5c8]
push ecx
call dword [sym.imp.COMDLG32.dll_PageSetupDlgW]
test eax, eax
je 0x11109da3
mov edx, dword [ebp - 0x5c0]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movsx ecx, word [eax + 0x4e]
dec ecx
je 0x11109d7f
sub ecx, 8
jmp 0x11109d84
mov ebx, 2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x5c0]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call edi
mov ecx, dword [ebp - 0x5bc]
push ecx
call edi
mov ecx, dword [0x1127d368]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x5cc]
mov edx, dword [edx + 0x18]
push eax
call edx
dec ebx
je 0x11109dc9
dec ebx
jne 0x11109dd3
mov dword [ebp - 0x5cc], 1
jmp 0x11109dd3
mov dword [ebp - 0x5cc], 3
mov al, byte [ebp + 0x14]
mov byte [esi + 0x24c], al
call fcn.111bbe50
test eax, eax
je 0x11109df1
mov dword [esi + 0x238], 0xc
jmp 0x11109dfb
mov dword [esi + 0x238], 0xb
mov ecx, dword [esi + 0x238]
push 0
push ecx
mov ecx, dword [esi + 0x18]
push str.FontSize
push 0x11218754
call fcn.110bbc00
mov ecx, dword [esi + 0x18]
push 0
mov dword [esi + 0x238], eax
add eax, 0xfffffffe
push eax
push str.FontSizeFooter
push 0x11218754
call fcn.110bbc00
push 0x190
lea edx, [ebp - 0x36c]
push edx
push 6
mov edi, eax
call fcn.11068bb0
add esp, 4
push eax
call fcn.111b8020
mov eax, dword [esi + 4]
mov edx, dword [eax]
add esp, 0xc
lea ecx, [esi + 4]
call edx
test al, al
jne 0x11109e7a
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [esi + 0x10]
push 0x208
lea eax, [ebp - 0x574]
push eax
push ecx
call fcn.111b8020
add esp, 0xc
push 0xc8
lea edx, [ebp - 0x1dc]
push edx
push 0x34a
call fcn.111bccb0
add esp, 4
push eax
call fcn.111b8020
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
lea edx, [ebp - 0x36c]
push edx
mov edx, dword [ebp - 0x5cc]
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x574]
push ecx
push edi
push edx
lea ebx, [esi + 0x23c]
push ebx
call dword [sym.imp.WxPdf.dll_CreatePDFWriter]
mov ecx, dword [esi + 0x18]
add esp, 0x2c
push 0
push 0xf
push str.MarginLeft
push 0x11218754
call fcn.110bbc00
mov ecx, dword [esi + 0x18]
push 0
push 0xf
push str.MarginRight
push 0x11218754
mov dword [ebp - 0x5d8], eax
call fcn.110bbc00
mov ecx, dword [esi + 0x18]
push 0
push 0xf
push str.MarginTop
push 0x11218754
mov dword [ebp - 0x5cc], eax
call fcn.110bbc00
mov ecx, dword [esi + 0x18]
push 0
push 0xf
push str.MarginBottom
push 0x11218754
mov dword [ebp - 0x5d4], eax
call fcn.110bbc00
fild dword [ebp - 0x5cc]
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebx]
sub esp, 8
fstp qword [esp]
push eax
call dword [sym.imp.WxPdf.dll_SetRightMargin]
fild dword [ebp - 0x5d8]
mov ecx, dword [ebx]
add esp, 4
fstp qword [esp]
push ecx
call dword [sym.imp.WxPdf.dll_SetLeftMargin]
fild dword [ebp - 0x5d4]
mov edx, dword [ebx]
add esp, 4
fstp qword [esp]
push edx
call dword [sym.imp.WxPdf.dll_SetTopMargin]
fild dword [ebp - 0x5d0]
add esp, 4
fstp qword [esp]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WxPdf.dll_SetBottomMargin]
add esp, 0xc
push 0
push 0x14
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x11109fc7
mov dx, word [0x1121ba88]
lea eax, [ebp - 0x114]
mov word [edi], dx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x11109fe0
mov ecx, dword [str.arial.ttf]
mov edx, dword [0x11222b90]
mov dword [eax], ecx
mov cx, word [0x11222b94]
mov dword [eax + 4], edx
lea edx, [ebp - 0x114]
push edx
mov word [eax + 8], cx
mov eax, dword [ebx]
push str.ArialReg
push eax
call dword [sym.imp.WxPdf.dll_AddFont]
add esp, 0xc
push 0
push 0x14
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1110a036
mov dx, word [0x1121ba88]
lea eax, [ebp - 0x114]
mov word [edi], dx
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1110a050
mov ecx, dword [str.arialbd.ttf]
mov edx, dword [0x11222b78]
mov dword [eax], ecx
mov ecx, dword [0x11222b7c]
mov dword [eax + 4], edx
lea edx, [ebp - 0x114]
push edx
mov dword [eax + 8], ecx
mov eax, dword [ebx]
push str.ArialBold
push eax
call dword [sym.imp.WxPdf.dll_AddFont]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.WxPdf.dll_AddPage]
mov edx, dword [ebx]
push edx
call dword [sym.imp.WxPdf.dll_GetTopMargin]
fstp qword [esi + 0x230]
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x14